View Single Post
Old 01-12-2018, 11:12 AM   #11
Velocity
Doing the wrong thing the right way since 2010.
Site and Game Administrator
AdministratorRetired StaffDeveloperFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Velocity's Avatar
 
Join Date: Jul 2007
Posts: 1,812
Default Re: AirR3 running choppy

There's issues with timing above 60 due to how both Flash and Air handle keyboard input, due to neither really being designed with >60fps in mind.

Keyboard events can only happen between frames for some reason, and during a normal frame, the game takes between 3-5ms to process. As the FPS goes up, the amount of idle time between frames goes down.

30fps = 33.33ms per frame, or roughly 25ms for input.
60fps = 16.67ms per frame, or roughly 10ms for input.
120fps = 11.11ms per frame or roughly 5ms for input.

Flash/Air will do it's best to not skip inputs, but it might not register the input for the game till a delay after when the user pressed the key.

Air will also try to use the FPS you set in the Settings menu without being capped to 60fps as well, which is what Flash was capped at. It also does some weird stuff if you set the fps above the refresh rate of your monitor.

Last edited by Velocity; 01-12-2018 at 11:13 AM..
Velocity is offline   Reply With Quote