Babylon.js Scene Rendering with Web Worker

This HTML code creates a Babylon.js scene in a web worker, controlled by query string parameters. When the page loads, it parses the URL's query string into an object and sends it to the web worker. The worker uses these parameters to configure the rendering behavior (like using WebGPU and controlling the render loop) for a Babylon.js scene, which is rendered offscreen on a canvas element.

WebGL using runRenderLoop
WebGL using setInterval
WebGPU using runRenderLoop
WebGPU using setInterval (not visible)