code wiki / _hdl_build / nx_cull_lod.nx

nx_cull_lod.nx

buildroot/runtime/_hdl_build/nx_cull_lod.nx

1725 B41 linesdepth 0pulls 0 transitivereach 3 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_cull_lod.nx nx_cull_lod_gate.nx nx_frame_budget_gate.nx nx_minigame_capstone_gate.nx

imports: none

imported by: nx_cull_lod_gate.nxnx_frame_budget_gate.nxnx_minigame_capstone_gate.nx

structs

none

consts

none

functions

7func cl_visible(nz: i64, dist: i64, sx: i64, far: i64, w: i64) -> i64
called by 2: cl_workcl_survivors
16func cl_lod_weight(dist: i64, mid: i64, far: i64) -> i64
called by 2: cl_workmain
23func cl_work(nz: *i64, dist: *i64, sx: *i64, n: i64, far: i64, w: i64, mid: i64) -> i64
34func cl_brute(n: i64) -> i64 { return n * 4 }
called by 2: mainmain
36func cl_survivors(nz: *i64, dist: *i64, sx: *i64, n: i64, far: i64, w: i64) -> i64
called by 1: main calls 1: cl_visible