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>
11 lines
203 B
C
11 lines
203 B
C
#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;
|
|
}
|