Merge: gamnit: use the same code to limit fps than mnit and fix errors
authorJean Privat <jean@pryen.org>
Wed, 9 Dec 2015 03:50:20 +0000 (22:50 -0500)
committerJean Privat <jean@pryen.org>
Wed, 9 Dec 2015 03:50:20 +0000 (22:50 -0500)
commitff48d4156f5de54106f07d3c25bb57d6f43324b7
tree8535a8f6f6fe528753e4d4b6b21b4d2fc3996a28
parenta898a5d289e28e80fceacdaf853394e2f607f8d5
parent7c6c90f0f69d5ba45783b0bdefbbd5e88c13a659
Merge: gamnit: use the same code to limit fps than mnit and fix errors

Fixed a few bugs in `mnit::mnit_fps`, a typo invalidated the value of `current_fps` and the use of long Ints were broken probably since they are tagged. Using floats should fix this last issue.

Finally, the goal of this PR is to copy the module `mnit::mnit_fps` to `gamnit::limit_fps` and adapt it to the gamnit framework. There is some code duplication, but the mnit version should be deleted with the engine when gamnit is completed.

Pull-Request: #1879
Reviewed-by: Jean Privat <jean@pryen.org>