What's New in melonJS 19.1.0
New Features
- Multi-texture batching — up to 16 textures drawn in a single batch/draw call, eliminating GPU flushes on texture changes. Automatically falls back to single-texture mode when a custom
ShaderEffectis active. ~80% fewer draw calls on the platformer example (14 vs ~70 flushes/frame), with an estimated 30-50% FPS improvement on low-end mobile devices. highPrecisionShaderapplication setting — whenfalse, caps shader precision atmediumpfor better performance on mobile GPUs that supporthighpbut run faster atmediump. Defaulttrue(auto-detect highest precision).
Bug Fixes
getSupportedCompressedTextureFormats()no longer crashes when the GL context is unavailable- Examples updated for 19.0 API changes (Text standalone draw removal, Application pattern)
Install
npm install melonjs@19.1.0