• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Apparent input lag?

M

maratae

Guest
Long story short:

Somewhere between the game input and the graphics pipeline there's something noticeably delaying what seems to be the reaction of the game character to input.

Where should I start looking?
Any suggestions on input optimization?
Have anyone else dealt with this?
 

Smiechu

Member
Make sure you are executing all build in movement functions before step end event. The execution of this functions takes place between step and step_end. Make sure you are giving input data before movement functions. If this is not taken into account, than by lower fps rates it can be noticed that movement is executed with delay.
If you use multiple objects to deal with input and movement, than place the input code in step_begin, and movement code in step event. This way no matter in which order are the instances of the objects processed, the input is always first.
 
M

maratae

Guest
Make sure you are executing all build in movement functions before step end event. The execution of this functions takes place between step and step_end. Make sure you are giving input data before movement functions. If this is not taken into account, than by lower fps rates it can be noticed that movement is executed with delay.
If you use multiple objects to deal with input and movement, than place the input code in step_begin, and movement code in step event. This way no matter in which order are the instances of the objects processed, the input is always first.
Thanks. I'm gonna give it a good look, while taking your advise into account.
 
Top