Skip to content

P-3: Classify texture write watch once - #62

Closed
JohnReedV wants to merge 2 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/p3-single-texture-watch
Closed

JohnReedV wants to merge 2 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/p3-single-texture-watch

Conversation

@JohnReedV

Copy link
Copy Markdown
Contributor

P-3: classify texture write watch once (draft)

Texture refreshes previously asked the write-watch journal as private memory, then retried with view guards when that failed. This change classifies the range once and uses the existing private copy or guarded-view hash path. It is opt-in with LEONIDA_TEXTURE_WATCH_ONCE=1; alt alternates paths every 20 seconds for comparison. The default path is unchanged. P-3 remains open because the full copy bottleneck and gameplay frame-rate goal are not resolved.

In an exploratory offline Proton 11 run, the opening 3D scene's median frame time was 2,846 ms on the old path versus 2,777 ms on this path (six frame summaries each, at least 1,000 draws). Both are about 0.3 FPS, with a changing scene, so no reliable FPS improvement is claimed. Median write-watch and guard query time was 726 ms (11 samples) versus 46 ms (15 samples); failed kernel queries fell from 851 to 172 per frame (six versus seven samples). The title still reached its existing watchdog, and visual parity has not been established. The run also included separate launcher, pipeline-library, shader-control-flow, and texture-range-lock changes; these figures are exploratory, not an isolated production benchmark.

Validation: 13 focused Windows-target synthetic watch tests under Proton; Windows MSVC-target Clippy with all features and warnings denied; cargo xtask policy; git diff --check. Tested on an Intel i9-14900KS, RTX 5090, NVIDIA 580.173.02, Proton 11. This PR was AI-assisted.

@JohnReedV

Copy link
Copy Markdown
Contributor Author

Closing this exploratory P-3 draft. The alternating Proton run reduced median texture write-watch and guard time from 726 ms to 46 ms, but world frame medians were 2,846 ms versus 2,777 ms in changing scenes, about 0.3 FPS in both modes. The title still hit its watchdog, and visual parity was not established. This does not demonstrate a gameplay frame-rate gain; P-3 remains open for a measured, validated fix.

@JohnReedV JohnReedV closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant