Skip to content

Commit

Permalink
Smoothed framerate by fixing unnecessary frameskip in onEnterFrame ev…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
krix committed Sep 7, 2011
1 parent cce60c3 commit 7fbc822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org/flixel/FlxGame.as
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ package org.flixel
_accumulator += elapsedMS;
if(_accumulator > _maxAccumulation)
_accumulator = _maxAccumulation;
while(_accumulator >= _step)
while(_accumulator > _step)
{
step();
_accumulator = _accumulator - _step;
Expand Down

0 comments on commit 7fbc822

Please sign in to comment.