Hex Map WFC: WebGPU Performance and Local Constraint Limitations
Felix Turner's Hex Map WFC utilizes WebGPU and Three.js TSL shaders to generate procedural medieval islands directly in the browser. It attempts to manage over 4,100 cells at high frame rates by using

The Pitch
Felix Turner's Hex Map WFC utilizes WebGPU and Three.js TSL shaders to generate procedural medieval islands directly in the browser. It attempts to manage over 4,100 cells at high frame rates by using WebGPU for high-performance rendering (GitHub).
Under the Hood
The system architecture relies on a three-layer modular approach: Terrain, Features, and Decorations (Article). To handle local contradictions during the generation process, the engine implements a 500-step backtracking limit (Article). Turner, an established creative technologist, has optimized the rendering for modern GPU acceleration (Airtight.cc).
However, the "Wave Function Collapse" label is a misnomer in this specific implementation. Senior developers note that the engine functions as a hard-coded constraint solver rather than a learning algorithm that infers rules from samples (HN). This lack of global logic means that rivers and roads fail to form continuous, sensible paths across the map (HN).
Performance parity is another concern for those not running flagship 2026 hardware. While the developer targets 60 FPS, users on 2021-era legacy machines report frame rates as low as 5 FPS (HN). "Mobile-ready" appears to be a term applied with significant optimism regarding the average user's hardware.
We currently lack success rate metrics for Layer 3 decorations, with only Layer 2 confirmed at 86% (Article). Additionally, there are no efficiency benchmarks comparing this hard-coded approach to modern LLM-native procedural engines (missing_info). Engines utilizing Claude 4.5 Opus or GPT-5 for real-time asset placement remain the current industry standard for coherence.
Marcus's Take
Hex Map WFC is a brilliant technical demonstration of WebGPU's potential, but it is not a production-grade map generator. The absence of global coherence makes the resulting islands look like a collection of disjointed assets rather than a functional environment. It is a solid resource for studying TSL shaders, but for actual game development, the lack of logical river and road pathing is a dealbreaker. Play with the demo, but keep your world-gen backend elsewhere.
Ship clean code,
Marcus.

Marcus Webb - Senior Backend Analyst at UsedBy.ai
Related Articles

Tin Can: A Proprietary VoIP Stack Disguised as Kids' Safety Hardware
Tin Can is a proprietary VoIP-over-Wi-Fi device marketed as a screen-free "landline" for children to communicate with a parent-approved whitelist. Following a $12M Series A led by Greylock Partners in

The 500MB Payload: The Technical Failure of Future PLC Infrastructure
PC Gamer recently published a guide to RSS readers, positioning them as the solution to modern social media bloat and algorithmic noise. The article is currently a focal point on Hacker News not for i

POSSE and the Industrialisation of Personal Domains
POSSE (Publish on your Own Site, Syndicate Elsewhere) is a decentralised publishing architecture that mandates the personal domain as the primary source for all content. By treating social media silos
Stay Ahead of AI Adoption Trends
Get our latest reports and insights delivered to your inbox. No spam, just data.