-
Notifications
You must be signed in to change notification settings - Fork 6
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
Faster animation rendering #3
base: master
Are you sure you want to change the base?
Conversation
Thanks, that looks great! I'm not sure how you're handling this, you seem to running both fixedLoop() and loop() inside your tick() method which you pass to FuncAnimation. |
That's one thing I couldn't figure out how to do. The animator uses some I didn't get around to experimenting with just viewing and not saving the On Sunday, March 8, 2015, arindam1993 [email protected] wrote:
|
@ckchow, is it possible to use the TimedAnimation method at the bottom of this documentation page? Maybe that would help get a variable frame rate (at least the examples seem to imply this). |
If you're still interested in frameskipping, I've found a sorta-solution. I just call self.fixedloop() a bunch of times before each render. I can push that change on this branch since it is only a few lines. However, I'm not sure what to do with respect to changing the FPS the renderer wants - if you change the FPS kwarg too much then the video doesn't work. I'm not sure about TimedAnimation. It looks like internally it expects a streaming event source that it samples from on a timer, and to provide that we would have to make the simulator itself provide frames at a uniform 30fps in realtime. |
Switched to using matplotlib's animation module.