Question by
JikaiNoTsubasa · Jul 19, 2018 at 10:30 PM ·
laginputs
Standalone windows build input lag
Hi all,
I have something strange here. In the editor I have full responsive inputs (movement + jump + E key spawn particle system). But when I build the game for windows (I currently have windows 10), it seems all calls to the keys are not working properly.
I can move smoothly vertical + horizontal but when I try to call my particle system with E or jump, it sometimes work and sometimes don't...
My game is networked, the standalone doesn't work when in host mode or client mode whereas the editor works in both modes.
I get the inputs through FixedUpdate: moveHorizontal = Input.GetAxisRaw("Horizontal"); moveVertical = Input.GetAxisRaw("Vertical");
keyJump = (Input.GetKeyDown(KeyCode.JoystickButton0) || Input.GetKeyDown(KeyCode.Space)) && isGrounded;
keyVFX = Input.GetKeyDown(KeyCode.JoystickButton1) || Input.GetKeyDown(KeyCode.E);
keyBullet = Input.GetKeyDown(KeyCode.JoystickButton2) || Input.GetKeyDown(KeyCode.Q);
Do you have any idea why?
Comment