davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
327 stars 63 forks source link

think about whether doing a tree(s) matching mechanism for the graph scene would be better than the current way to reuse objects... #184

Open davidedc opened 10 years ago

davidedc commented 10 years ago

as in: the graphic commands build a mock scenegraph. The scenegraph is compared to the existing scenegraph, and only the parts of the scenegraph that are changes are changed.

Note that now we don't build a scenegraph, we calculate the matrix and slap it into every single object, and objects are cached.

The two ways of doing things might be very similar, maybe avoiding the matrix calculations every frame of the current way could be better though...

davidedc commented 9 years ago

note: check whether this is an actual bottleneck at the moment, because usually shrinking the window gets sketches to run at 60fps. Sending an elaborate scenegraph and updating the deltas between frames wouldn't necessarily make any difference at the moment, something so be checked before embarking on this...