By reading this answer I now know that WebGL always runs on a separate process and its calls are, in fact, asynchronous with regards to the main JavaScript code. However, can I expect, since the commands are enqueued by the JavaScript code, to have them executed in the same order they are called in my code? Even if another command is still executing when I proceed with my JavaScript, if I happened to run another call to WebGL
it should get enqueued and execute when the previous one is over, or at least this is what I understood.
What should I pay attention to, in order to avoid having WebGL
commands run in an unexpected way, if this is even possible?