This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Koen Bok
Posted Feb 16 - Read on Facebook

#ProInfo: ever heard about garbage collectors causing stuttery animations and wondered what it meant?

The garbage collector is a mechanism to manage your programs memory so it returns it after you used it to store values. That way you don't have to manage it yourself. In order to see if the memory can be claimed back, it needs to stop everything for a small moment. These pauses also stop animation, causing dropped frames, or stutters.

You can see the effect here (try different browsers):
http://v8.googlecode.com/svn/branches/bleeding_edge/benchmarks/spinning-balls/index.html

Luckily browsers have gotten really smart about this so if you don't create huge amounts of objects that you then dispose (like the example above does) you are not likely to run into this.

1 Comments

Jordan Robert Dobson

That's a great visual way to explain.

Read the entire post on Facebook