Skip to content

Conversation

@lennym
Copy link
Contributor

@lennym lennym commented Jul 18, 2016

The calculation of the throttle time based on fps option was the wrong way round so that decreasing the fps (which should result in fewer renders) actually caused the render rate to increase.

A fps of 10 should result in a timeout value of 100ms, but as the code was previously it resulted in a timeout of 0.01ms, which effectively meant that there was no throttling.

The calculation of the throttle time based on `fps` option was the wrong way round so that *decreasing* the fps (which *should* result in fewer renders) actually caused the render rate to increase.

A `fps` of 10 should result in a timeout value of 100ms, but as the code was previously it resulted in a timeout of 0.01ms, which effectively meant that there was no throttling.
@AndiDittrich AndiDittrich merged commit 00bfb30 into npkgz:master Jul 18, 2016
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.

2 participants