mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-01 08:50:06 +00:00
Tiled hydrology lattice
- Stored lattice samples in compact 32x32 tiles with least-recently-used tile eviction - Cached sampled pond rim columns in a block-resolution tile cache - Read window coarse nodes from the fine lattice at stride 2 - Removed the window lattice and FineLatticeSource - Sized the fine lattice for an eleven-window span and the region lattice for a seven-region span - Updated lattice, planner and probe harness callers for the single fine lattice
This commit is contained in:
1 parent
c700138b66
commit
8773d4b008
12 files changed
+323
-292
No files matched your search
@@ -195,7 +195,8 @@ final class HydrologyPlanHarness {
|
||||
double landTiles(WindowKey key) {
|
||||
int cells = WindowKey.SIZE / WindowPlanner.CELL;
|
||||
HydrologySampleBuffer samples = new HydrologySampleBuffer(cells * cells);
|
||||
planners.windowLattice().fill(key.wx() * cells, key.wz() * cells, cells, cells, samples);
|
||||
int stride = WindowPlanner.CELL / WindowPlanner.FINE_CELL;
|
||||
planners.fineLattice().fill(key.wx() * cells * stride, key.wz() * cells * stride, cells, cells, stride, samples);
|
||||
int land = 0;
|
||||
for (int cell = 0; cell < cells * cells; cell++) {
|
||||
if (!samples.ocean()[cell]) {
|
||||
|
||||
Reference in new issue
Block a user