code wiki / _hdl_build / nx_cull_lod.nx
nx_cull_lod.nx
buildroot/runtime/_hdl_build/nx_cull_lod.nx
about
nx_cull_lod.nx -- P3 RESPONSIVENESS: sovereign CULLING + LOD, the "do less work" lever that the
research named as the top win you fully own on weak hardware. Back-face + distance + frustum culling
drop triangles BEFORE the pixel stage; LOD lowers detail with distance. Pure integer; the work it
avoids is MEASURED (survivor count + LOD-weighted work vs brute-force). 100% sovereign. license_tier: ORIGINAL
dependencies 0 imports · 3 importers
imports: none
imported by: nx_cull_lod_gate.nxnx_frame_budget_gate.nxnx_minigame_capstone_gate.nx
structs
| none |
consts
| none |
functions
| 7 | func cl_visible(nz: i64, dist: i64, sx: i64, far: i64, w: i64) -> i64 |
| 16 | func cl_lod_weight(dist: i64, mid: i64, far: i64) -> i64 |
| 23 | func cl_work(nz: *i64, dist: *i64, sx: *i64, n: i64, far: i64, w: i64, mid: i64) -> i64 |
| 34 | func cl_brute(n: i64) -> i64 { return n * 4 } |
| 36 | func cl_survivors(nz: *i64, dist: *i64, sx: *i64, n: i64, far: i64, w: i64) -> i64 |