Input Lag PS4

Gtuner IV general support. Operation, questions, updates, feature request.

Input Lag PS4

Postby alexsalin » Sat May 15, 2021 8:06 pm

Hello everyone,
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);
}
 
 


Image
Attachments
dsqdqs.jpg
Configuration
dsqdqs.jpg (64.13 KiB) Viewed 633 times
User avatar
alexsalin
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Aug 14, 2019 1:17 pm

Re: Input Lag PS4

Postby Scachi » Sat May 15, 2021 8:58 pm

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().
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Input Lag PS4

Postby alexsalin » Sat May 15, 2021 9:03 pm

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.
User avatar
alexsalin
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Aug 14, 2019 1:17 pm

Re: Input Lag PS4

Postby Scachi » Sat May 15, 2021 9:08 pm

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:
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);
}
 
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Input Lag PS4

Postby alexsalin » Sun May 16, 2021 12:09 am

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.
User avatar
alexsalin
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Aug 14, 2019 1:17 pm


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 80 guests