Have you ever noticed these weird framedrops in Flixel 2.5 which result in choppy movement of your sprites?
Even if your game runs constantly at 60fps!?
Well I think I have a fix for you!
Since Flixel 2.5 frames will be skipped if a given framerate can not be hold.
This is basically a good thing, because otherwise your whole game would be slowed down in this case!
Unfortunately there is a bug in the routine that decides to skip a frame or not, which can cause unnecessary frameskips.
To fix this find the function onEnterFrame
and change the line:
while(_accumulator >= _step)
while(_accumulator > _step)
Also see my github change here:https://github.com/krix/flixel/commit/7fbc822359dfdfd6d74d9b9eaf86e0699c1cb0da
Thanks to this small change my sprite movements are smooth as ice cream!
Sidenote:Set Flash Framerate and Game Framerate to 60 to achieve maximum smoothness.
You can to this by setting the properties directly:
FlxG.framerate = 60;
FlxG.flashFramerate = 60;
or you can set them directly in the constructor of your FlxGame object:
super(320, 240, GameState, 2, 60, 60);
Please let me know if this also works for you.
[EDIT: Also have a look on this additional improvement: http://forums.flixel.org/index.php/topic,4543.0.html