EmscriptenGLX
Overview
Currently, major minigame platforms mainly use webgl/webgl2 rendering contexts. For minigames converted using a JS engine, GL instruction calls are mainly rendered through JS -> platform. For minigames converted using a WebAssembly approach (such as the Unity/Tuanjie engine rapid adaptation solution), all in-game GL instruction calls need to go through three layers of conversion: WASM -> WebGL JS glue layer -> platform rendering. For games using this kind of conversion approach, the high-frequency communication between the WASM module and JavaScript inevitably brings heavy performance overhead.
To solve this problem, Runtime uses the EmscriptenGLX integration solution. With the EmscriptenGLX rendering mode, WASM -> platform rendering can be completed entirely inside WASM, eliminating the high-frequency call chain between WASM and JS.
Using EmscriptenGLX in Runtime requires no additional integration work.
