Changeset 126:9cae256b91d7


Ignore:
Timestamp:
Apr 4, 2011, 9:38:03 PM (9 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
9bc55e055b594efb132939afa5b0286e45b52939
Message:

Fix bug in FPS calculation. Phew -- we're still fast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/engine.py

    r123 r126  
    3636            self._current_scene.draw(surface, self)
    3737            pygame.display.flip()
    38             self._fpss[self._cur_frame] = clock.tick(self._framerate)
     38            self._fpss[self._cur_frame] = 1000.0 / clock.tick(self._framerate)
    3939            self._cur_frame = self._cur_frame + 1 if self._cur_frame < 99 else 0
    4040
Note: See TracChangeset for help on using the changeset viewer.