feat(render3d): gate R3D_* switches behind R3D_DEV in windowed builds
Every R3D_* read goes through r3d_env_has / r3d_env (env.ludic): a headless build honours them as before, a windowed build only when R3D_DEV is set to anything but "0", so a shipped game never reaches a debug view, feature kill, file writer or hardware fake. Documented in docs/SHIPPING.md. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
132deac5bc
commit
2980f050ed
21 changed files with 122 additions and 74 deletions
|
|
@ -54,8 +54,8 @@ var stream_walks: int = 0 # streams that walked their whole ring this f
|
|||
function stream_new(layer: Layer, size: int, reach: int, b0: int, b1: int, b2: int, b3: int) -> Stream {
|
||||
if not stream_cap_read {
|
||||
stream_cap_read = true
|
||||
if Os.has_env("R3D_STREAM_CAP") { STREAM_MAX_CHUNKS = Text.to_int(Os.env("R3D_STREAM_CAP")) }
|
||||
stream_no_evict = Os.has_env("R3D_NOEVICT")
|
||||
if r3d_env_has("R3D_STREAM_CAP") { STREAM_MAX_CHUNKS = Text.to_int(r3d_env("R3D_STREAM_CAP")) }
|
||||
stream_no_evict = r3d_env_has("R3D_NOEVICT")
|
||||
}
|
||||
let s = new Stream
|
||||
s.layer = layer; s.size = size; s.reach = reach
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue