- Joined
- Mar 19, 2012
- Messages
- 172
- Reaction score
- 103
- First Language
- English
- Primarily Uses
Framerate Independence
by Jet
Introduction
I've never quite understood why more games don't make themselves framerate independent. This meaning that say, a sprite is supposed to move 1 pixel every frame. You update at 60 FPS. The player, say due to a weak computer, only updates at 30 FPS. This independence from framerate would supplement by moving the sprite 2 pixels every frame instead of 1. This means that no matter what FPS the player is at, frame-based actions should take place in the same amount of time.
Features
- Frame-based actions are synchronized by time
- Plug and play
- That's basically it
Script
http://pastebin.com/raw.php?i=m4sGTgZ1
Credit
Jet
Note
This only applies this effect to the default engine. 3rd party scripts which use frame-based operations may still work at their regular speed instead of framerate independent.
Last edited by a moderator: