scenevr / client

:punch: Web client
7 stars 2 forks source link

Reduce memory allocations #114

Open bnolan opened 9 years ago

bnolan commented 9 years ago

Write a performance script to measure memory allocations (that require garbage collecting) in 2000ms of steady state rendering of the homeroom. It looks from this chrome devtools timeline that the client allocates about 10mb every second.

screen shot 2015-04-29 at 10 59 19 pm

The end goal is to do no memory allocations in a render frame, and an absolute minimal required in an animation-only scene update.

Prime targets:

Tween.js is over-specced for our needs, and the way we use it probably creates a lot of garbage.

bnolan commented 9 years ago

Actually, a script isn't necessary, just sit down with the chrome dev tools and get started.

bnolan commented 9 years ago

Re-using the iframe helped judder heaps. We should make lots of follow up issues to this to re-use anything that is created and used more than once.