Skip to content

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Dec 8, 2015

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.

xymus added 4 commits December 8, 2015 11:11
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
This duplication could probably be avoided as only the name of the method
`frame_full` changes. But the doal is also to fully replace `mnit` so
the old module should be removed soon...

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
@privat
Copy link
Member

privat commented Dec 8, 2015

+1

@privat
Copy link
Member

privat commented Dec 8, 2015

you broke clients that set their fps with Int

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
privat added a commit that referenced this pull request Dec 9, 2015
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>
@privat privat merged commit 7c6c90f into nitlang:master Dec 9, 2015
@xymus xymus deleted the limit_fps branch November 15, 2016 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants