frame per second in my computer is 60 or so,
it becomes 110 when runs in another computer.
how to let it with a fixed num.
FPS control
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
You cannot fix it to a fixed number, at least not exactly. One way is to Measure the time the last render took, and sleep for some more milliseconds until the desired duration is met. Another way is to use VSync, but the number of FPS is defined by the horizontal display frequency, which may vary from system to system. The best way is to ignore the number of FPS and make the whole system frame-rate independent.