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:
41
Plan.org
41
Plan.org
@@ -343,19 +343,34 @@ Not ported yet: the =patchy= world climate (=worldClimate= other than
|
||||
=realistic=), and the forest, shrub, flower and beach maps, which
|
||||
nothing here uses.
|
||||
|
||||
** 3. Minimal viewer
|
||||
- Nuklear panels, a pannable and zoomable tile map, and a
|
||||
layer switcher for the region maps.
|
||||
- Settings panel:
|
||||
- seed, world size, worldHeight;
|
||||
- landcover, oceanscale, landformScale, upheavelCommonness,
|
||||
geologicActivity;
|
||||
- worldClimate, polarEquatorDistance, globalTemperature/Precipitation,
|
||||
startingClimate.
|
||||
- River config section, with load from =rivers.json=.
|
||||
- Load settings from =serverconfig.json= or a =.vcdbs=.
|
||||
- Hover readout: coordinates, province, landform, climate.
|
||||
- Tiles exist only for the view.
|
||||
** 3. Minimal viewer (done)
|
||||
=vs-map-viewer [--assets DIR] [--zoom Z] [--layer N] [--screenshot F]
|
||||
[WORLD]=, where WORLD is a =.vcdbs= or a =serverconfig.json=.
|
||||
- *Map.* Pan by dragging, zoom with the wheel around the cursor, from
|
||||
1/16 to 32 blocks per point. At 32, the window shows the full
|
||||
25,600-block length of the test world.
|
||||
- *Layers.* Landform, climate, province, upheaval, ocean, and rock
|
||||
strata thickness with a stratum picker. Spawn and the story
|
||||
locations are marked.
|
||||
- *World panel.* Every setting worldgen reads, with Apply, and Load
|
||||
for a save or a server config.
|
||||
- *Info panel.* Block and region under the cursor, with landform,
|
||||
province, climate, ocean and upheaval there.
|
||||
- *Tiles* (=tiles.sex=). A tile is one region of one map. They are
|
||||
generated by =cores - 1= worker threads, each with its own worldgen.
|
||||
The queue is rebuilt every frame from the visible tiles, nearest the
|
||||
centre first. Up to 16,384 tiles are cached and evicted least
|
||||
recently drawn first.
|
||||
- *Idle.* With nothing pending, the loop sleeps on events (about 2%
|
||||
CPU).
|
||||
- *Speed.* A full window at maximum zoom-out renders in 1.1 s for
|
||||
landforms and under 0.5 s for the other layers.
|
||||
- *Screenshots.* =--screenshot= saves the window once no tile is
|
||||
pending, and quits. That is how the viewer gets checked without
|
||||
looking at it.
|
||||
|
||||
Deferred: the river config section moves to phase 4, where there is
|
||||
something to configure.
|
||||
|
||||
** 4. Rivers layout
|
||||
- Port =fastnoise= (OpenSimplex2 2D FBm) and =rivers=:
|
||||
|
||||
Reference in New Issue
Block a user