Input Lag PS4
5 posts
• Page 1 of 1
Input Lag PS4
Hello everyone,
Can someone explain me why i have an input lag on PS4 ?
It's a simple code
Can someone explain me why i have an input lag on PS4 ?
It's a simple code
- Code: Select all
#pragma METAINFO("<author_name>", 1, 0, "")
// variables
int x = 30;
int y = 30;
main {
if(event_release(BUTTON_16)) {
printf("taps first: %d");
combo_run (PRESS_CROSS);
}
}
combo PRESS_CROSS {
set_val(BUTTON_16, 0);
set_val(BUTTON_8, 100);
set_val(BUTTON_16, 100);
wait(x);
set_val(BUTTON_8, 0);
set_val(BUTTON_16, 0);
wait(y);
}
- Attachments
-
- Configuration
- dsqdqs.jpg (64.13 KiB) Viewed 634 times
-
alexsalin - Sergeant
- Posts: 7
- Joined: Wed Aug 14, 2019 1:17 pm
Re: Input Lag PS4
How do you experience input lag or what makes you think you have some ?
Your script does start on release of the x button atm.
When you want it to start on the press you need to use event_active().
Your script does start on release of the x button atm.
When you want it to start on the press you need to use event_active().
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Input Lag PS4
Yes, the script start at the release.
The input lag i feel it before the release, when i put on the BUTTON_16, tooks time before the release.
I feel the difference because i compared with and without the Titan 2 device.
The input lag i feel it before the release, when i put on the BUTTON_16, tooks time before the release.
I feel the difference because i compared with and without the Titan 2 device.
-
alexsalin - Sergeant
- Posts: 7
- Joined: Wed Aug 14, 2019 1:17 pm
Re: Input Lag PS4
If you feel 30ms input lag:
You have set_val Button_16 twice in the first wait.
So your script releases the button after 30ms : it keeps it pressed 30ms before it releases it.
What it the button sequence you want it to run ?
perhaps you want:
You have set_val Button_16 twice in the first wait.
So your script releases the button after 30ms : it keeps it pressed 30ms before it releases it.
What it the button sequence you want it to run ?
perhaps you want:
- Code: Select all
#pragma METAINFO("<author_name>", 1, 0, "")
// variables
int x = 30;
int y = 30;
main {
if(event_release(BUTTON_16)) {
printf("taps first: %d");
combo_run (PRESS_CROSS);
}
}
combo PRESS_CROSS {
set_val(BUTTON_8, 100);
wait(x);
set_val(BUTTON_16, 100);
wait(y);
}
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Input Lag PS4
Thank you. Yes, i tried this code, it works good.
I did many test, i found that the lag is coming from the device because without script, i still have an input lag.
I did many test, i found that the lag is coming from the device because without script, i still have an input lag.
-
alexsalin - Sergeant
- Posts: 7
- Joined: Wed Aug 14, 2019 1:17 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 109 guests