melonJS 20.17: 2D Engine Moves Isometric and Hexagonal Tiled Map Rendering to the GPUBrief · digest for November 25
Brief≈ 1 min

melonJS 20.17: 2D Engine Moves Isometric and Hexagonal Tiled Map Rendering to the GPU

Building a browser strategy game or RPG with large Tiled maps pushes the main thread hard. The 2D engine melonJS moved standard rectangular maps to the GPU back in 19.4, while isometric, staggered, and hexagonal maps stayed on the CPU. Version 20.17.0 closes that gap: all three map types now render on the GPU under WebGL and WebGPU.

You don't have to rewrite game code—acceleration turns on automatically when a tile layer uses a single tileset. With 1,200 visible tiles on an isometric layer, main-thread frame time drops by 90% (from 0.68 ms to 0.07 ms), and at 4,000 tiles it plunges 98% (from 2.0 ms to 0.04 ms). Staggered and hex maps see similar gains. On laptops and mobile devices, those saved milliseconds free up headroom for physics, logic, and AI, keeping 60 and 120 FPS steady.

Version 20.17.0 also improves Tiled support and visual effects. Layer offsets now apply properly, oversized tiles no longer clip at screen edges, and semi-transparent layers fade as one unified surface without showing tile seams. New effects include player-focused sprite transition masks, 2–8 color palette remapping via GradientMapEffect, and retro dithering with DitherEffect.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2