Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent frame rate of GlutWindow #794

Merged
merged 4 commits into from
Oct 15, 2016
Merged

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented Oct 14, 2016

SimWindow and the derived classes (e.g., MyWindow of apps) call glutTimerFunc() when resuming the simulation or replay. However, this leads to calling the callee function passes into glutTimerFunc() multiple times because glutTimerFunc() adds the callee function instead of resetting. I believe this is why the drawing rate was increased as reported by #729 and #792.

This PR fixes it by calling glutTimerFunc() once in GlutWindow::initWindow().


This change is Reviewable

@jslee02 jslee02 merged commit 80c4cba into release-5.1 Oct 15, 2016
@jslee02 jslee02 deleted the dart-5.1_simwindow branch October 15, 2016 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant