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

gganimate object rendering output time #442

Closed
mansi-aggarwal-2504 opened this issue Jun 5, 2021 · 1 comment
Closed

gganimate object rendering output time #442

mansi-aggarwal-2504 opened this issue Jun 5, 2021 · 1 comment

Comments

@mansi-aggarwal-2504
Copy link

mansi-aggarwal-2504 commented Jun 5, 2021

I am using gganimate for the first time and I am using in to render a generative art animation. My large gganim object is 12.5 MB in size and animate() has been running for about 30 minutes.
Does it take too long to render a 12.5 MB output? How can speed up the process?
Reference code here.

Edit:

Code ran for about 50 minutes and then gave this error:
Error: vector memory exhausted (limit reached?)

@thomasp85
Copy link
Owner

it very much depends. The way gganimate works under the hood is that it generates all the data for all the frames before beginning to plot it. This is often a good idea for short data animations as it leverages Rs vectorisation but it completely falls apart for longer animations with larger data as the data expansion can eat away the memory.

For now there is no way around this making gganimate not practical for some purposes

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

No branches or pull requests

2 participants