[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Resurrecting Update Scheduling
To do better than that, we could try to use Web Workers, because they can execute independently of those "main thread" tasks. Workers can't manipulate the DOM or do most of the other things JS animations would like to do. But we could create some kind of API to allow a worker to control a WebGL canvas. Then --- if the browser supports compositing page contents off the main thread --- you could get WebGL canvas animations onto the screen without being vulnerable to main-thread task latency. I see this is a rather advanced feature that most authors would not bother with, and thus relatively low priority.
"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]