mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
raea-sys-gi: a probe on the surface each 16-pixel tile shows traces 16 cosine rays a frame through the TLAS with gi.wesl's own functions (gi.wesl is now a shader library; WorldCache carries its group), keeps a running mean over up to 24 frames found where it stood last frame, and is pooled with its neighbours on its own plane. Each pixel takes the four probes around it by depth and normal and reads the cache at its own surface only where none is on it. A GI pipeline that fails to build says so (gi-pipeline) instead of quietly measuring raster. The screen passes are timed on the GPU beside the cache (RAEA_GI_STATS screen_ms; the light check's gi gpu column adds them). LT2's probe grid is traced only when shown: its rays claimed cache cells no pixel reads. LT14: raster runs none of this (RAEA_GI=1 only), so LT1's raster numbers stand (FLOOR3 1.392/-0.816/3.392/0.111). The gi path, filtered, before (dcc8e57d42) against after: FLOOR3 mean 2.381/0.617, bias -2.118/-0.547, worst 6.012/5.170, flicker 0.415/0.131, live 16.1/14.4 ms glade mean 1.319/1.292, bias 1.074/1.041, worst 2.941/2.939, flicker 0.782/0.773 Berlin's walk live 38.9 ms gi against 39.1 raster, raea GI 1.32 ms of GPU (cache 0.31, screen 1.01) kitchen live 52.1 ms gi, 1.91 of it GI FLOOR3's worst tile is its ceiling, lit only by the floor, whose cells rarely find a lens (D7, LT6).