5 ms·
It's very common, even OpenGL had a way to do that way back in OpenGL 1.3[1][2]... I said it before with they "Off Main Thread" feature, it's been in game engi
by speps 9y ago
It's very common, even OpenGL had a way to do that way back in OpenGL 1.3[1][2]...
I said it before with they "Off Main Thread" feature, it's been in game engines for decades now... Meh, what's not known is bound to be reinvented.
[1] https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glNewList.xml https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml...
[2] http://www.songho.ca/opengl/gl_displaylist.html http://www.songho.ca/opengl/gl_displaylist.html
- mrec 9y agoNot quite the same - I remember using GL display lists, but once you'd compiled one it was set in stone. There was no way to mostly reuse it but with a few changes here and there.
- speps 9y agoIt all depends on how your organize them really. If you follow the DOM hierarchy then you would only need to change one if the element has changed color for example, not position, scale, rotation as that would be done with the transform.
- mrec 9y agoAren't you assuming one display list per leaf element, which kind of negates the whole benefit of batching? If DOM node X hasn't rotated but one of its grandchildren has, a display list representing the whole of X will definitely need updating!