Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Add parameter to limit the animation frame rate #333

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

jafyvilla
Copy link
Contributor

Using the new --animation-fps parameter, users can now limit
the maximum number of frames per second that they will get from
the data source. Note that this won't affect the rendering rate,
but just the animation rate. By default it gets a value of 0,
setting a new frame as soon as the previous one is finished

@@ -101,6 +103,7 @@ class Config::Impl
, redraw( true )
, dataFrameRange( INVALID_FRAME_RANGE )
, dataSourceRange( 0.0f, 255.0f ) // Default range for uint8 data sources
, frameStart( steady_clock::now( ))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frameStart( getTime( )) would work too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I wasn't aware of that one

Using the new --animation-fps parameter, users can now limit
the maximum number of frames per second that they will get from
the data source. Note that this won't affect the rendering rate,
but just the animation rate. By default it gets a value of 0,
setting a new frame as soon as the previous one is finished
@bilgili
Copy link
Contributor

bilgili commented Sep 1, 2016

+1

@bilgili bilgili merged commit 52b325b into BlueBrain:master Sep 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants