[GH #5] Intro Movie is juming forward and back frames (3080 10GB) #5

Open
opened 2026-11-25 02:54:55 +00:00 by NZAntivist · 6 comments
NZAntivist commented 2026-11-25 02:54:55 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by NZAntivist on 2026-11-25T02:17:04Z.


Intro Movie is very seizure educing, saying 30fps with 30m/s frame times.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6595629673 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5). Originally posted by [NZAntivist](https://github.com/NZAntivist) on 2026-11-25T02:17:04Z. --- Intro Movie is very seizure educing, saying 30fps with 30m/s frame times.
NZAntivist commented 2026-11-25 02:54:57 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by NZAntivist on 2026-11-25T02:19:23Z.


Log file: ztrx.log

Video of Error: https://streamable.com/hf8xc5

<!-- greyfinch-sync:Zettrox/ztrx:comment:7150577430 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5#issuecomment-7150577430). Originally posted by [NZAntivist](https://github.com/NZAntivist) on 2026-11-25T02:19:23Z. --- Log file: [ztrx.log](https://github.com/user-attachments/files/35389339/ztrx.log) Video of Error: https://streamable.com/hf8xc5
JFIREonFIRE commented 2026-11-25 02:54:57 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by JFIREonFIRE on 2026-11-25T02:31:40Z.


This looks like the same thing as fxceless/victory-fork#269 (startup screens and intro show repeated or stale frames). ztrx is that fork's 2119b0e, so it carries the same bug.

The workaround in #269, VICTORY_TEXTURE_GUARD=0, did not remove it on 2119b0e on an RTX 3090. The frame time stays a steady 33.3 ms, which matches what you see here (30 fps, 30 ms). So it's stale content being shown, not a slow frame. I've posted the details there, and I'll follow up on that issue if a cause turns up.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Zettrox/ztrx:comment:7150838499 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5#issuecomment-7150838499). Originally posted by [JFIREonFIRE](https://github.com/JFIREonFIRE) on 2026-11-25T02:31:40Z. --- This looks like the same thing as fxceless/victory-fork#269 (startup screens and intro show repeated or stale frames). ztrx is that fork's `2119b0e`, so it carries the same bug. The workaround in #269, `VICTORY_TEXTURE_GUARD=0`, did **not** remove it on `2119b0e` on an RTX 3090. The frame time stays a steady 33.3 ms, which matches what you see here (30 fps, 30 ms). So it's stale content being shown, not a slow frame. I've posted the details there, and I'll follow up on that issue if a cause turns up. AI-assisted (Claude Code).
NZAntivist commented 2026-11-25 02:54:57 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by NZAntivist on 2026-11-25T02:36:42Z.


Just tested as well, the listed workaround didn't work for me on my 3080 either

<!-- greyfinch-sync:Zettrox/ztrx:comment:7150947970 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5#issuecomment-7150947970). Originally posted by [NZAntivist](https://github.com/NZAntivist) on 2026-11-25T02:36:42Z. --- Just tested as well, the listed workaround didn't work for me on my 3080 either
ToxicmaggotRP commented 2026-11-25 04:11:31 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by ToxicmaggotRP on 2026-11-25T03:59:45Z.


<html>

Additional QA test – RTX 4060 Ti 8GB / Ryzen 7 5800X3D

Test date: November 25, 2026

ZTRX commit: 90b529f878a470fec9bf07b7be316bc769a12232

System specifications

  • OS: Windows 11 Home – Build 26300

  • CPU: AMD Ryzen 7 5800X3D

  • GPU: NVIDIA GeForce RTX 4060 Ti 8GB

  • GPU driver: 32.0.16.2124 (reported by Windows)

  • RAM: 32 GB

Test results

Test | Result -- | -- Initial screen | PASS Loading screens | PASS Intro playback | FAIL Rendering after intro | FAIL Menu interaction | FAIL

Observed problems

  1. The initial screen displays correctly.

  2. Loading screens work without black screens.

  3. The intro movie repeatedly jumps forward and backward between frames.

  4. After the intro, the display becomes completely gray.

  5. The performance overlay showed:

    • 0 FPS

    • 13,186 ms/frame

    • 5,682 frame draws

  6. Opening the menu causes the game to freeze.

  7. The game had to be closed manually.

Log observations

The ZTRX log recorded:

  • 2.7 FPS and 369.0 ms/frame in one performance sample.

  • 158 draws/frame.

  • 39 draws dropped because the host pipeline was unavailable.

  • 424 host pipelines still being created.

  • title did not finish suspending in time; ending the title

This was the first run with the shader cache being populated, so I cannot yet determine whether the severe performance is specific to the initial shader translation.

Overall result

FAIL – The game launches successfully, but the intro playback, rendering and menu interaction are not usable in this test.

Could this be related to the existing intro frame presentation issue? Is the gray screen and menu freeze a known limitation?

I can provide the full ztrx.log for further investigation.

</html>

ztrx.log

<!-- greyfinch-sync:Zettrox/ztrx:comment:7152430692 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5#issuecomment-7152430692). Originally posted by [ToxicmaggotRP](https://github.com/ToxicmaggotRP) on 2026-11-25T03:59:45Z. --- <html> <body> <!--StartFragment--><h2><span>Additional QA test – RTX 4060 Ti 8GB / Ryzen 7 5800X3D</span></h2><p><strong><span>Test date:</span></strong><span> November 25, 2026</span></p><p><strong><span>ZTRX commit:</span></strong><span> </span><code><span>90b529f878a470fec9bf07b7be316bc769a12232</span></code></p><h3><span>System specifications</span></h3><ul><li><p><span>OS: Windows 11 Home – Build 26300</span></p></li><li><p><span>CPU: AMD Ryzen 7 5800X3D</span></p></li><li><p><span>GPU: NVIDIA GeForce RTX 4060 Ti 8GB</span></p></li><li><p><span>GPU driver: 32.0.16.2124 (reported by Windows)</span></p></li><li><p><span>RAM: 32 GB</span></p></li></ul><h3><span>Test results</span></h3> Test | Result -- | -- Initial screen | PASS Loading screens | PASS Intro playback | FAIL Rendering after intro | FAIL Menu interaction | FAIL <h3><span>Observed problems</span></h3><ol start="1"><li><p><span>The initial screen displays correctly.</span></p></li><li><p><span>Loading screens work without black screens.</span></p></li><li><p><span>The intro movie repeatedly jumps forward and backward between frames.</span></p></li><li><p><span>After the intro, the display becomes completely gray.</span></p></li><li><p><span>The performance overlay showed:</span></p><ul><li><p><span>0 FPS</span></p></li><li><p><span>13,186 ms/frame</span></p></li><li><p><span>5,682 frame draws</span></p></li></ul></li><li><p><span>Opening the menu causes the game to freeze.</span></p></li><li><p><span>The game had to be closed manually.</span></p></li></ol><h3><span>Log observations</span></h3><p><span>The ZTRX log recorded:</span></p><ul><li><p><span>2.7 FPS and 369.0 ms/frame in one performance sample.</span></p></li><li><p><span>158 draws/frame.</span></p></li><li><p><span>39 draws dropped because the host pipeline was unavailable.</span></p></li><li><p><span>424 host pipelines still being created.</span></p></li><li><p><code><span>title did not finish suspending in time; ending the title</span></code></p></li></ul><p><span>This was the first run with the shader cache being populated, so I cannot yet determine whether the severe performance is specific to the initial shader translation.</span></p><h3><span>Overall result</span></h3><p><strong><span>FAIL – The game launches successfully, but the intro playback, rendering and menu interaction are not usable in this test.</span></strong></p><p><span>Could this be related to the existing intro frame presentation issue? Is the gray screen and menu freeze a known limitation?</span></p><p><span>I can provide the full </span><code><span>ztrx.log</span></code><span> for further investigation.</span></p><!--EndFragment--> </body> </html> [ztrx.log](https://github.com/user-attachments/files/35392410/ztrx.log)
ToxicmaggotRP commented 2026-11-25 05:09:08 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by ToxicmaggotRP on 2026-11-25T04:36:54Z.


Update: Second launch – Reached gameplay, severe performance and rendering issues

Test date: November 25, 2026
ZTRX commit: 90b529f878a470fec9bf07b7be316bc769a12232

Second launch results

The second launch successfully progressed beyond the introductory sequence and reached playable gameplay.

However, performance remained extremely poor.

Observed performance:

  • In-game overlay: approximately 2 FPS, 512.4 ms/frame, 4,582 draws/frame.
  • ZTRX log sample: 1.6 FPS, 645.0 ms/frame, 11,156 draws/frame.
  • 1,336 draws dropped because the host pipeline was unavailable.
  • 0 pipelines were still being created among those reported as missing.
  • 1,974 indirect draws.
  • Approximately 348.1 ms GPU time in the reported sample.

Rendering problems

  • Some prison building textures are missing or invisible.
  • Some character textures are missing or invisible.
  • Overall rendering quality is severely degraded.

Memory usage during gameplay

  • Physical RAM: 32 GB.
  • RAM in use: 27.6 GB (87%).
  • Available RAM: 4.4 GB.
  • Committed memory: 51.1 / 54.9 GB (93%).

Stability

No unexpected crash was observed during the second gameplay session.

The game was manually closed after testing. The log records:

window closed: suspending the title

followed by:

title did not finish suspending in time; ending the title

Conclusion

The second launch successfully reached gameplay, but the game remained effectively unplayable due to extremely low frame rates and missing textures.

The second launch did not resolve the performance or rendering problems.

The full second-run log is available as an attachment: ztrx-second-run.log.

ztrx-second-run.log

<!-- greyfinch-sync:Zettrox/ztrx:comment:7153005210 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5#issuecomment-7153005210). Originally posted by [ToxicmaggotRP](https://github.com/ToxicmaggotRP) on 2026-11-25T04:36:54Z. --- ## Update: Second launch – Reached gameplay, severe performance and rendering issues **Test date:** November 25, 2026 **ZTRX commit:** `90b529f878a470fec9bf07b7be316bc769a12232` ### Second launch results The second launch successfully progressed beyond the introductory sequence and reached playable gameplay. However, performance remained extremely poor. **Observed performance:** - In-game overlay: approximately 2 FPS, 512.4 ms/frame, 4,582 draws/frame. - ZTRX log sample: 1.6 FPS, 645.0 ms/frame, 11,156 draws/frame. - 1,336 draws dropped because the host pipeline was unavailable. - 0 pipelines were still being created among those reported as missing. - 1,974 indirect draws. - Approximately 348.1 ms GPU time in the reported sample. ### Rendering problems - Some prison building textures are missing or invisible. - Some character textures are missing or invisible. - Overall rendering quality is severely degraded. ### Memory usage during gameplay - Physical RAM: 32 GB. - RAM in use: 27.6 GB (87%). - Available RAM: 4.4 GB. - Committed memory: 51.1 / 54.9 GB (93%). ### Stability No unexpected crash was observed during the second gameplay session. The game was manually closed after testing. The log records: `window closed: suspending the title` followed by: `title did not finish suspending in time; ending the title` ### Conclusion The second launch successfully reached gameplay, but the game remained effectively unplayable due to extremely low frame rates and missing textures. The second launch did not resolve the performance or rendering problems. The full second-run log is available as an attachment: `ztrx-second-run.log`. [ztrx-second-run.log](https://github.com/user-attachments/files/35393422/ztrx-second-run.log)
xiaotu030202 commented 2026-11-25 12:07:12 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by xiaotu030202 on 2026-11-25T11:37:46Z.


Reading texture.rs on 90b529f to explain JFIREonFIRE's data point above — the one where VICTORY_TEXTURE_GUARD=0 did not stop the flicker on 2119b0e, while it does for several others. I think both observations are right, and the switch simply cannot reach the path that matters in that case.

The two paths

refresh_timed has two independent write-detection branches, and the guard switch controls only the second:

// Path 1 — real write watch. No guard reference anywhere in it.
if let Some((now, written)) = waited(1, || crate::watch::writes(start, start + size, false)) {
    if last.asked != 0 && written.iter().all(|&(_, w)| w <= last.asked) {
        return 0;                        // <- returns here, guard or no guard
    }
    ...
    return size;
}

// Path 2 — view memory, which has no write-watch. The guard lives here.
if *GUARD.get_or_init(|| std::env::var_os("VICTORY_TEXTURE_GUARD").is_none_or(|v| v != "0"))
    && let Some((now, written)) = waited(1, || crate::watch::writes(start, start + size, true))
{
    const HASH_EVERY: u64 = 8;
    ...
}

The guarded argument is what differs: false is the plain GetWriteWatch path, true is "view memory, guard it". So:

  • A texture in watchable memory takes path 1. VICTORY_TEXTURE_GUARD=0 never changes anything for it.
  • A texture in view memory takes path 2, and there the switch does what its comment says: hash at every check instead of every eighth frame.

That is consistent with the thread: people whose stale textures are in view memory see the switch fix it; JFIREonFIRE's startup screens and intro were not.

Why path 1 can still serve stale content

GetWriteWatch with WRITE_WATCH_FLAG_RESET reports pages written through that mapping. The comment in the code says it outright:

What the guard cannot see (a write to the same pages through another view) is still found by the hash

Path 1 has the same blind spot, and unlike path 2 it has no hash to fall back on — an empty report means written.iter().all(...) is vacuously true and the function returns 0. So a texture the title writes through a second mapping that the watch does not cover stays as it was, indefinitely, with the switch on or off.

JFIREonFIRE's other observation fits that: a steady 33.3 ms/frame both ways. Nothing is stuttering, nothing is waiting; the same content is presented again. That is a "we decided the texture did not change" symptom, not a pacing one.

What this predicts, and how to check it cheaply

If the above is the mechanism, then on a build with the flicker:

VICTORY_TEXTURE_GUARD=0            -> still flickers (expected, path 1)
+ VICTORY_DISABLE_WRITE_WATCH=1 …  -> no such switch exists

There is no switch that forces path 1 to hash, so the cheapest probe is a temporary one: make waited(1, ...) at path 1 return None for one build (forcing every texture through the hash), and see whether the startup screens and intro become correct. If they do, the mechanism is confirmed and the fix is to fuzzy the two paths together — hash on a missed watch rather than trusting an empty report — at the cost the guard was introduced to avoid (51 ms/frame in run 58, per the comment).

If they do not, then the stale content is not coming from refresh_timed at all and the search should move to how the present resolves for those frames, which I have not looked at.

Two things I could not determine

  • Whether the startup screens and the intro actually use watchable memory or view memory. That decides which path they take, and it is visible in the diagnostics counters (TexWatched vs TexHashed in copystat) for a run with captures. I have no game files, so I cannot produce that number.
  • 17 in the trace of path 2 — written.iter().all(|&(_, w)| w <= last.asked) — uses last.asked set at path 1's last.asked = now. Both paths share that field. If path 1 runs first in a given frame and returns 0, path 2's unwritten test compares against a stamp path 1 already advanced, so path 2 may call a texture unwritten that path 1 did see written. That looks like a second, smaller way to miss a change, and I am flagging it rather than claiming it — I have not traced whether both can run for one texture.

No patch from me: this needs a run to confirm, and cargo test --workspace is green here (0 failures), so nothing in the suite covers it.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7161293835 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/5#issuecomment-7161293835). Originally posted by [xiaotu030202](https://github.com/xiaotu030202) on 2026-11-25T11:37:46Z. --- Reading `texture.rs` on `90b529f` to explain JFIREonFIRE's data point above — the one where `VICTORY_TEXTURE_GUARD=0` did **not** stop the flicker on `2119b0e`, while it does for several others. I think both observations are right, and the switch simply cannot reach the path that matters in that case. ## The two paths `refresh_timed` has two independent write-detection branches, and the guard switch controls only the second: ```rust // Path 1 — real write watch. No guard reference anywhere in it. if let Some((now, written)) = waited(1, || crate::watch::writes(start, start + size, false)) { if last.asked != 0 && written.iter().all(|&(_, w)| w <= last.asked) { return 0; // <- returns here, guard or no guard } ... return size; } // Path 2 — view memory, which has no write-watch. The guard lives here. if *GUARD.get_or_init(|| std::env::var_os("VICTORY_TEXTURE_GUARD").is_none_or(|v| v != "0")) && let Some((now, written)) = waited(1, || crate::watch::writes(start, start + size, true)) { const HASH_EVERY: u64 = 8; ... } ``` The `guarded` argument is what differs: `false` is the plain `GetWriteWatch` path, `true` is "view memory, guard it". So: - A texture in **watchable** memory takes path 1. `VICTORY_TEXTURE_GUARD=0` never changes anything for it. - A texture in **view memory** takes path 2, and there the switch does what its comment says: hash at every check instead of every eighth frame. That is consistent with the thread: people whose stale textures are in view memory see the switch fix it; JFIREonFIRE's startup screens and intro were not. ## Why path 1 can still serve stale content `GetWriteWatch` with `WRITE_WATCH_FLAG_RESET` reports pages **written through that mapping**. The comment in the code says it outright: > What the guard cannot see (a write to the same pages through another view) is still found by the hash Path 1 has the same blind spot, and unlike path 2 it has no hash to fall back on — an empty report means `written.iter().all(...)` is vacuously true and the function returns 0. So a texture the title writes through a second mapping that the watch does not cover stays as it was, indefinitely, with the switch on or off. JFIREonFIRE's other observation fits that: **a steady 33.3 ms/frame both ways**. Nothing is stuttering, nothing is waiting; the same content is presented again. That is a "we decided the texture did not change" symptom, not a pacing one. ## What this predicts, and how to check it cheaply If the above is the mechanism, then on a build with the flicker: ``` VICTORY_TEXTURE_GUARD=0 -> still flickers (expected, path 1) + VICTORY_DISABLE_WRITE_WATCH=1 … -> no such switch exists ``` There is no switch that forces path 1 to hash, so the cheapest probe is a temporary one: make `waited(1, ...)` at path 1 return `None` for one build (forcing every texture through the hash), and see whether the startup screens and intro become correct. If they do, the mechanism is confirmed and the fix is to fuzzy the two paths together — hash on a missed watch rather than trusting an empty report — at the cost the guard was introduced to avoid (51 ms/frame in run 58, per the comment). If they do not, then the stale content is not coming from `refresh_timed` at all and the search should move to how the present resolves for those frames, which I have not looked at. ## Two things I could not determine - **Whether the startup screens and the intro actually use watchable memory or view memory.** That decides which path they take, and it is visible in the diagnostics counters (`TexWatched` vs `TexHashed` in `copystat`) for a run with captures. I have no game files, so I cannot produce that number. - `17` in the trace of path 2 — `written.iter().all(|&(_, w)| w <= last.asked)` — uses `last.asked` set at path 1's `last.asked = now`. Both paths share that field. If path 1 runs first in a given frame and returns 0, path 2's `unwritten` test compares against a stamp path 1 already advanced, so path 2 may call a texture unwritten that path 1 *did* see written. That looks like a second, smaller way to miss a change, and I am flagging it rather than claiming it — I have not traced whether both can run for one texture. No patch from me: this needs a run to confirm, and `cargo test --workspace` is green here (0 failures), so nothing in the suite covers it.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Zettrox/ztrx#5
No description provided.