4 Commits

Author SHA1 Message Date
dobbry-vechur ee76be710f Build light per level
- sunlight is built into its own grid per level; each level's light
  starts from it and adds only the sources standing on that level
- building one level no longer writes over another level's light,
  such as its darkness fields
- levels the avatar or a camera sees get full light; the rest get
  sunlight alone, as all levels did before
- open sky above the highest structure is one value, not a full grid
2026-10-05 13:54:21 +04:00
dobbry-vechur 3b6a3e04b4 Make line-of-sight checks follow the current scene
- map::sees takes a trace: optical for sight (the default) or physical
  for light and projectiles; flashes, projectiles, sonar and heat use
  physical
- cached answers are dropped whenever the scene changes, not only when
  the avatar's view does
- a check made between two builds first builds pending scene changes
2026-10-03 16:44:01 +04:00
dobbry-vechur 0c4384a787 Add a from-scratch vision oracle and benchmarks
- rebuild_vision_caches_from_scratch builds every vision cache with no
  history, as a reference for tests
- the oracle compares an incremental build after a real change (step,
  door, weather, posture) with that rebuild, cache by cache
- hidden benchmarks time the same changes, to compare with master
2026-10-02 13:30:46 +04:00
RenechCDDA da2aaffffd Add quick setup option to clear map 2026-06-22 15:07:51 -04:00