does line 1214 know which scene to process?
Yes, fyi that repo was just an example of HOW the scences play.
Update on this after doing lots of testing. This issue could be related to Garbage Collection and its only really cropping up when the current animation is rendering Line, Line2, Meshlines and has dispose() and copy() functions running.
I created a test bed with 1 animation cloned to 100 scenes, the animation has 1000 THREE.BOX() objects moving around randomly. To load it down I also dispose and recreate geometries for each object at each frame. 0 lag or stuttering.
The original animation does a lot of:
-Create a bunch of vertices
-dispose of previous Line Geometry
-Create new geometry via line2.setPositions(vertices)
-Clone that geometry to the other 100 lines.
This runs fine on its own, but if I create 100 scenes with just the above box animation the line animation is jittery as hell Avery 2 seconds or so:
OK so I think I may have found the culprit! I was reading this post Performance Diagnosis - #3 by bmb and it mentioned
I replaced
geometry[partIndex].copy( geometry[0] );
with this:
geometry[partIndex].setPositions( pointData );
(point data was an array vertices used to create the 1st geometry i was copying to the rest)
There is still a minor stutter but its only visible in the performance debug, not on the animation!

