show the generated region maps in the viewer

Tiles are single maps of single regions, generated on worker threads
that each own a worldgen, since the layers keep RNG state. Only the
visible tiles are queued, nearest first, so the viewer never computes
more than the window shows and sleeps once it has drawn it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 18:24:59 +03:00
parent 63fd30a189
commit 5ad62524f1
10 changed files with 939 additions and 116 deletions

View File

@@ -1,3 +1,10 @@
#include <stdio.h>
#define NK_IMPLEMENTATION
#define NK_SDL3_RENDERER_IMPLEMENTATION
#include "nk.h"
char *vsmv_dtoa(char *s, double n)
{
snprintf(s, NK_MAX_NUMBER_BUFFER, "%g", n);
return s;
}