render3d: the terrain's questions never page - ter_h and ter_o read a resident tile in place and any other through the file scratch (heights and now the photograph, four tiles each, sized when the tiles open, forgotten when they close), so terrain_height, _smooth, terrain_ortho, the chunk heightfields, ground_fill, grass, water and shadow no longer take slots or move the clock. Only the loaders page: tp_fill reads through tt_h_load / tt_n_load / tt_o_load, and terrain_tiles_prefetch as before. terrain_height_file is now terrain_height, kept as the name callers wrote against. No answer changes: every read was already the whole copy's texel. tests/height_file_test: heights and photograph equal the texels written, resident or not; a whole-map sweep of the questions, and a ground layer's fill over the map (a one-layer LGD2 written in the test), leave the slots, their contents, the clock and the read counts unchanged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2288feeb59
commit
130b9091d1
6 changed files with 249 additions and 101 deletions
|
|
@ -889,10 +889,13 @@ export state Render3dState {
|
|||
tt_reads: int = 0 # tiles read from the file, over the run and this frame
|
||||
tt_frame_reads: int = 0
|
||||
tt_warned: bool = false
|
||||
tf_raw: []byte = buffer(2048) # terrain_height_file's own: one tile's bytes as read,
|
||||
tf_raw: []byte = buffer(2048) # the questions' file scratch (terrain_height_file.ludic): a tile's bytes as read,
|
||||
tf_h: floats = floats(4096) # ... TF_KEEP tiles' heights, and which (tile + 1, 0: none)
|
||||
tf_tile: words = words(4)
|
||||
tf_next: int = 0
|
||||
tfo_px: words = words(4) # ... and TF_KEEP tiles' photograph (sized when a map opens), and which
|
||||
tfo_tile: words = words(4)
|
||||
tfo_next: int = 0
|
||||
tp_on: bool = false # the GPU pages the fine tiles round the camera (terrain_pages.ludic)
|
||||
tp_page_tex: int = 0 # R32F tt_n a side: slot + 1 of each resident tile, 0 = the coarse level
|
||||
tp_h_tex: int = 0 # the pool: heights, normals and photograph, a layer a slot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue