mrdoob/three.js — Issue #1435: Framerate goes down when new objects added on scene
Author: Turboconnard
Created: 2012-03-02 09:03:12+00:00
State: open

I'm having a strange issue and I don't know if this is a webgl/three problem or if my code goes wrong.

I build a king of 3D carousel with "floors", on each floor there are 4 objects and if you go right with the keyboard and go upon 4 you go to the next floor, etc...
The old floor goes up and the new one come from bottom.

If i put 8, 10 or 20 objects on one floor I keep my 60fps but when I change floor (only 4 objects) and add new objects (only 4) I have a framerate drop to 30. So i think it's not a too much polygons lag.

My first thought was "ok, it needs to calculate texture because I clone, offset them and they needsupdate" so i tried to build and add the next floor before it arrives (when you look at the first one) but the frame drop occured when new floor arrives on screen and not during the build or the add...
I don't know if there's a method or property to force render off screen objects or do I miss something ?

Thanks again for this awesome framework and sorry for my bad english...