ASTRO BOT (PPSA21567): "too many objects/batches in this scene" assert in the robot cutscene after New Game: draw threads race for bone uploads while the flip submission is held #5645

Open
opened 2026-10-14 03:12:11 +00:00 by hugodearaujo · 8 comments
hugodearaujo commented 2026-10-14 03:12:11 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-14T03:12:11Z.


What happens

After New Game, the cutscene with the crowd of robots stops on the title's own assert in about 70–80% of runs (Linux, RX 9070 XT / RADV, current main plus #5309 and #5390):

ASSERT: ...\gpu\command\_IMPL\_PPR\command_buffer_writer.ppr.cpp:31
There are too many objects/batches in this scene.

Getting past the scene is random. In runs that pass, nothing visible differs.

What the title does (measured with temporary in-process hooks, not part of any PR)

The title records each frame on five command buffer contexts. Four of them belong to fixed draw threads:

Thread Context size
DrawThread 7 MiB
Draw Geometry 7 MiB
Draw Shadow 4 MiB
Draw Extra Geometry 4 MiB

Every animated robot carries a per-frame "bones uploaded" byte (object+0x14, checked at app.elf+0x496fb8, set at +0x4970aa, not atomic). The first draw thread to draw a robot in a frame copies its 24 KiB of bone data into its own command buffer and sets the byte. Later draws on the other threads only reference that copy.

  • In normal frames, DrawThread gets to almost every robot first (75–150 uploads), and the other threads make 0–3.
  • In the crashing frame of each of the 5 runs where we logged uploads per thread, DrawThread made only 9–29. Draw Geometry, Draw Shadow and Draw Extra Geometry got to the robots first (for example 62 / 87 / 98 uploads), and a 4 MiB context overflowed. In the run where we also logged when each thread started, DrawThread had not started any display list of that frame when Draw Extra Geometry reached its 40th upload, 0.54 ms after the flip.
  • The display lists each thread executes are the same in good and bad frames (same streams, same entry counts). Only the order in which the threads reach the robots changes. Starting 0.3 ms later is enough for DrawThread to lose.

Where DrawThread is at that point

A sampling profiler signalled DrawThread every 100 µs while it had not started its first display list of the frame. In each 600-flip window, 92–97% of 73,000–189,000 samples were in the same place:

app.elf+0x4a651b  call sceAgcDriverSubmitDcb
  AgcDriver::Submit
  Driver::Submit
  Driver::holdFlipBehindWorker   (Submission.cpp:147)
  std::condition_variable::wait

That is the hold from #1745. A queue 0 submission with a flip waits until the worker has reached every earlier flip. DrawThread submits the frame's flip and is released only when the worker reaches the previous flip. The helper threads start the next frame at about that same moment (within about 1 ms of the flip in every frame we logged), so the four threads start together and the bone uploads go to whichever thread arrives first. On hardware the submit returns at once, so DrawThread would already be into the next frame by then.

What we could not establish

  • Whether removing the hold fixes the crash. Without the hold (a local switch that makes holdFlipBehindWorker return at once, or that allows one flip ahead), the title stops at the logo with compute shader ...: AGC graphics: guest snapshot differs from registered memory. Adding APS5_NO_SNAPSHOT_CHECK=1 gives black frames and artifacts at the logo and then a lost device (vkQueueSubmit ... -4). These are the per-frame ring overruns #1745 describes, so the title never reaches the scene. APS5_NO_FLIP_HOLD, mentioned in #1745, no longer exists in the code.
  • Why the worker is that far behind in this scene. #1745 measured submissions waiting 98–110 ms in queue 0 on PPSA21564. We did not measure the queue 0 worker here.
  • What the console does. No hardware timing for this title.

What we ruled out (repeated runs)

The occlusion latency (CPU-side occlusion dumps), the PS5 Pro mode, synchronous presentation, APS5_TIME_SCALE with a scaled vblank, the GPU timestamp values, host CPU affinity, and thread priority (all four draw threads use 680). None of them removes the crash.

Possible directions

  1. Make the queue 0 worker keep up with the title in this scene, so the hold rarely blocks. That is the real fix, and the larger one.
  2. Release a held flip submission earlier, without letting the title get further into its three-slot ring. The worker reads the per-frame memory in place when it records, so this would need that memory captured earlier, when the submission is accepted. We have not checked whether that is feasible.

Environment

  • Linux (Arch, kernel 7.2), RX 9070 XT, RADV
  • ASTRO BOT PPSA21567, my own dump
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5841271419 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-14T03:12:11Z. --- ### What happens After New Game, the cutscene with the crowd of robots stops on the title's own assert in about 70–80% of runs (Linux, RX 9070 XT / RADV, current `main` plus #5309 and #5390): ``` ASSERT: ...\gpu\command\_IMPL\_PPR\command_buffer_writer.ppr.cpp:31 There are too many objects/batches in this scene. ``` Getting past the scene is random. In runs that pass, nothing visible differs. ### What the title does (measured with temporary in-process hooks, not part of any PR) The title records each frame on five command buffer contexts. Four of them belong to fixed draw threads: | Thread | Context size | |---|---| | `DrawThread` | 7 MiB | | `Draw Geometry` | 7 MiB | | `Draw Shadow` | 4 MiB | | `Draw Extra Geometry` | 4 MiB | Every animated robot carries a per-frame "bones uploaded" byte (`object+0x14`, checked at `app.elf+0x496fb8`, set at `+0x4970aa`, not atomic). The first draw thread to draw a robot in a frame copies its 24 KiB of bone data into **its own** command buffer and sets the byte. Later draws on the other threads only reference that copy. - In normal frames, `DrawThread` gets to almost every robot first (75–150 uploads), and the other threads make 0–3. - In the crashing frame of each of the 5 runs where we logged uploads per thread, `DrawThread` made only 9–29. `Draw Geometry`, `Draw Shadow` and `Draw Extra Geometry` got to the robots first (for example 62 / 87 / 98 uploads), and a 4 MiB context overflowed. In the run where we also logged when each thread started, `DrawThread` had not started any display list of that frame when `Draw Extra Geometry` reached its 40th upload, 0.54 ms after the flip. - The display lists each thread executes are the same in good and bad frames (same streams, same entry counts). Only the order in which the threads reach the robots changes. Starting 0.3 ms later is enough for `DrawThread` to lose. ### Where `DrawThread` is at that point A sampling profiler signalled `DrawThread` every 100 µs while it had not started its first display list of the frame. In each 600-flip window, 92–97% of 73,000–189,000 samples were in the same place: ``` app.elf+0x4a651b call sceAgcDriverSubmitDcb AgcDriver::Submit Driver::Submit Driver::holdFlipBehindWorker (Submission.cpp:147) std::condition_variable::wait ``` That is the hold from #1745. A queue 0 submission with a flip waits until the worker has reached every earlier flip. `DrawThread` submits the frame's flip and is released only when the worker reaches the previous flip. The helper threads start the next frame at about that same moment (within about 1 ms of the flip in every frame we logged), so the four threads start together and the bone uploads go to whichever thread arrives first. On hardware the submit returns at once, so `DrawThread` would already be into the next frame by then. ### What we could not establish - **Whether removing the hold fixes the crash.** Without the hold (a local switch that makes `holdFlipBehindWorker` return at once, or that allows one flip ahead), the title stops at the logo with `compute shader ...: AGC graphics: guest snapshot differs from registered memory`. Adding `APS5_NO_SNAPSHOT_CHECK=1` gives black frames and artifacts at the logo and then a lost device (`vkQueueSubmit ... -4`). These are the per-frame ring overruns #1745 describes, so the title never reaches the scene. `APS5_NO_FLIP_HOLD`, mentioned in #1745, no longer exists in the code. - **Why the worker is that far behind in this scene.** #1745 measured submissions waiting 98–110 ms in queue 0 on PPSA21564. We did not measure the queue 0 worker here. - **What the console does.** No hardware timing for this title. ### What we ruled out (repeated runs) The occlusion latency (CPU-side occlusion dumps), the PS5 Pro mode, synchronous presentation, `APS5_TIME_SCALE` with a scaled vblank, the GPU timestamp values, host CPU affinity, and thread priority (all four draw threads use 680). None of them removes the crash. ### Possible directions 1. Make the queue 0 worker keep up with the title in this scene, so the hold rarely blocks. That is the real fix, and the larger one. 2. Release a held flip submission earlier, without letting the title get further into its three-slot ring. The worker reads the per-frame memory in place when it records, so this would need that memory captured earlier, when the submission is accepted. We have not checked whether that is feasible. ### Environment - Linux (Arch, kernel 7.2), RX 9070 XT, RADV - ASTRO BOT PPSA21567, my own dump - AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
oneandonlydean commented 2026-10-14 03:36:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T03:36:32Z.


We don't reproduce this on PPSA21564 (same game, other region; Linux, RTX 4090, NVIDIA): 152 runs of main builds that include #1745 went through the New Game cutscene with no assert.

Your reading matches the code. Driver::holdFlipBehindWorker (core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/Submission.cpp:147) blocks the thread that submits a queue 0 flip until the worker has reached every earlier flip. The console's submit never blocks like that, so DrawThread starts the next frame together with the helpers instead of ahead of them. The 4 MiB contexts and the assert are the title's own (command_buffer_writer.ppr.cpp:31), and the bone-upload byte is an unsynchronised race in the title that console timing always settles the same way.

We don't have an exact fix to offer yet. The hold is there because the worker records from per-frame memory in place and falls more than a frame behind. Your runs without it, and with one flip ahead, show it can't be loosened until the worker keeps up (your direction 1). Direction 2 would need everything a frame's commands read to be captured at submit, and the driver can't know that set until the worker records the frame.

One thing that would help: the queue 0 delay in this scene on your machine, from a build with -DAPS5_ENABLE_TIMING_LOG=ON (the Submission queue and dequeue rows of frame-timing.log), so we can see how far behind the worker is when the assert hits.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160313084 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6160313084). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T03:36:32Z. --- We don't reproduce this on PPSA21564 (same game, other region; Linux, RTX 4090, NVIDIA): 152 runs of `main` builds that include #1745 went through the New Game cutscene with no assert. Your reading matches the code. `Driver::holdFlipBehindWorker` (`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/Submission.cpp:147`) blocks the thread that submits a queue 0 flip until the worker has reached every earlier flip. The console's submit never blocks like that, so `DrawThread` starts the next frame together with the helpers instead of ahead of them. The 4 MiB contexts and the assert are the title's own (`command_buffer_writer.ppr.cpp:31`), and the bone-upload byte is an unsynchronised race in the title that console timing always settles the same way. We don't have an exact fix to offer yet. The hold is there because the worker records from per-frame memory in place and falls more than a frame behind. Your runs without it, and with one flip ahead, show it can't be loosened until the worker keeps up (your direction 1). Direction 2 would need everything a frame's commands read to be captured at submit, and the driver can't know that set until the worker records the frame. One thing that would help: the queue 0 delay in this scene on your machine, from a build with `-DAPS5_ENABLE_TIMING_LOG=ON` (the `Submission queue` and `dequeue` rows of `frame-timing.log`), so we can see how far behind the worker is when the assert hits.
oneandonlydean commented 2026-10-14 10:01:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T10:01:32Z.


We timed this scene on the other region (RTX 4090, current main) with a local probe. It logs submit entry and exit, the flip hold, and every guest wait longer than 20 µs, per thread.

  • DrawThread submits all of the frame's DCBs within about 1 ms, then sits in the hold. Median 40 ms per frame; 315 s of a 399 s run.
  • Draw Geometry, Draw Shadow and Draw Extra Geometry never started a frame while DrawThread was held (0 of 5,794 frames). Their frame wake always came 0.6 ms or more after DrawThread returned from the flip submission, and it moved with that return. When the rest of the submit took 1–3 ms longer, the helpers woke that much later.
  • After that common wake, DrawThread led the first helper by 0.65 ms median and 0.24 ms at p1.

So here the hold doesn't let the helpers get ahead. It parks the whole process every frame until the queue 0 worker catches up, and then the title's own wake order decides who uploads the bones. The margin is the 0.3 ms you measured.

Could you check the same thing on your machine, for a few frames before the assert?

  • the time DrawThread returns from the flip submission;
  • the time each draw thread wakes for the next frame;
  • the time of each thread's first bone upload.

If the helpers wake before DrawThread returns, the hold is involved on your side and we'll look at it again. If they wake after, as here, the fix is the worker keeping up (#5485), not a change to the hold. Your CPU model would help too.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6165809625 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6165809625). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T10:01:32Z. --- We timed this scene on the other region (RTX 4090, current `main`) with a local probe. It logs submit entry and exit, the flip hold, and every guest wait longer than 20 µs, per thread. - `DrawThread` submits all of the frame's DCBs within about 1 ms, then sits in the hold. Median 40 ms per frame; 315 s of a 399 s run. - `Draw Geometry`, `Draw Shadow` and `Draw Extra Geometry` never started a frame while `DrawThread` was held (0 of 5,794 frames). Their frame wake always came 0.6 ms or more after `DrawThread` returned from the flip submission, and it moved with that return. When the rest of the submit took 1–3 ms longer, the helpers woke that much later. - After that common wake, `DrawThread` led the first helper by 0.65 ms median and 0.24 ms at p1. So here the hold doesn't let the helpers get ahead. It parks the whole process every frame until the queue 0 worker catches up, and then the title's own wake order decides who uploads the bones. The margin is the 0.3 ms you measured. Could you check the same thing on your machine, for a few frames before the assert? - the time `DrawThread` returns from the flip submission; - the time each draw thread wakes for the next frame; - the time of each thread's first bone upload. If the helpers wake before `DrawThread` returns, the hold is involved on your side and we'll look at it again. If they wake after, as here, the fix is the worker keeping up (#5485), not a change to the hold. Your CPU model would help too.
hugodearaujo commented 2026-10-14 12:40:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-14T12:40:06Z.


Measured on my machine with a lean probe (32-byte records written with O_APPEND, no locks): DrawThread entering and leaving the flip hold and returning from the flip submission (Driver::Submit), each draw thread waking for its frame (app.elf+0x2a9a84, right after the wait on state 1), and each thread's first bone upload of a frame (+0x496f90 with the byte at object+0x14 still 0). Current main (eecf90953), Linux, RX 9070 XT, Ryzen 7 9800X3D, 8 cores with SMT off (8 logical CPUs).

Same as on your side: across 5 runs (66,283 frames), no draw thread ever woke while DrawThread was held. They wake 0.6–0.75 ms (median) after it returns, never sooner than 0.19 ms. The hold lasts 95–101 ms per frame in this scene, so the queue 0 worker is about 100 ms behind.

Two of the five runs hit the assert. Times in ms after DrawThread returned from the flip submission:

frame wake: Geometry / Shadow / Extra / Decal first bone upload: DrawThread / Geometry / Shadow / Extra
run 4, −1 1.17 / 1.17 / 1.17 / 1.17 1.52 / 1.41 / – / –
run 4, assert 2.45 / 2.52 / 3.27 / 2.45 2.75 / 2.72 / 2.59 / 3.44
run 5, −1 1.37 / 1.82 / 1.15 / 1.07 1.83 / 1.57 / – / –
run 5, assert 2.80 / 3.00 / 2.29 / 2.60 2.63 / 6.19 / 5.75 / 2.45

Both assert frames are the first frame of the crowd shot. The helpers wake about 0.2–0.35 ms before DrawThread's first upload, so DrawThread releases them during its own pre-work. In run 4, Draw Shadow uploaded 0.07 ms after waking and 0.16 ms ahead of DrawThread. In run 5, Draw Extra Geometry uploaded 0.16 ms after waking and 0.18 ms ahead of it. So on my machine too, the hold doesn't let the helpers get ahead; the title's own wake order decides, by a fraction of a millisecond. With only 8 logical CPUs, that margin may be tighter here than on yours.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6168554540 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6168554540). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-14T12:40:06Z. --- Measured on my machine with a lean probe (32-byte records written with `O_APPEND`, no locks): `DrawThread` entering and leaving the flip hold and returning from the flip submission (`Driver::Submit`), each draw thread waking for its frame (`app.elf+0x2a9a84`, right after the wait on state 1), and each thread's first bone upload of a frame (`+0x496f90` with the byte at `object+0x14` still 0). Current `main` (`eecf90953`), Linux, RX 9070 XT, **Ryzen 7 9800X3D, 8 cores with SMT off (8 logical CPUs)**. Same as on your side: across 5 runs (66,283 frames), no draw thread ever woke while `DrawThread` was held. They wake 0.6–0.75 ms (median) after it returns, never sooner than 0.19 ms. The hold lasts 95–101 ms per frame in this scene, so the queue 0 worker is about 100 ms behind. Two of the five runs hit the assert. Times in ms after `DrawThread` returned from the flip submission: | frame | wake: Geometry / Shadow / Extra / Decal | first bone upload: DrawThread / Geometry / Shadow / Extra | |---|---|---| | run 4, −1 | 1.17 / 1.17 / 1.17 / 1.17 | 1.52 / 1.41 / – / – | | run 4, assert | 2.45 / 2.52 / 3.27 / 2.45 | 2.75 / 2.72 / **2.59** / 3.44 | | run 5, −1 | 1.37 / 1.82 / 1.15 / 1.07 | 1.83 / 1.57 / – / – | | run 5, assert | 2.80 / 3.00 / 2.29 / 2.60 | 2.63 / 6.19 / 5.75 / **2.45** | Both assert frames are the first frame of the crowd shot. The helpers wake about 0.2–0.35 ms before `DrawThread`'s first upload, so `DrawThread` releases them during its own pre-work. In run 4, `Draw Shadow` uploaded 0.07 ms after waking and 0.16 ms ahead of `DrawThread`. In run 5, `Draw Extra Geometry` uploaded 0.16 ms after waking and 0.18 ms ahead of it. So on my machine too, the hold doesn't let the helpers get ahead; the title's own wake order decides, by a fraction of a millisecond. With only 8 logical CPUs, that margin may be tighter here than on yours.
hugodearaujo commented 2026-10-15 14:23:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-15T14:23:31Z.


Small corrections to my comment above, rechecked against the same five runs. The conclusion does not change.

  • There were 66,287 frames, not 66,283.
  • The median wake after DrawThread returned was 0.61–0.80 ms per thread and run, not 0.6–0.75 ms.
  • "The helpers wake about 0.2–0.35 ms before DrawThread's first upload" holds for only some of them. In run 4, Geometry, Shadow and Decal woke 0.23–0.30 ms before it and Extra Geometry 0.52 ms after. In run 5, Extra Geometry woke 0.34 ms before it, Decal 0.03 ms before, and Geometry and Shadow after it. The helper that uploaded ahead of DrawThread in each run (Shadow in run 4, Extra Geometry in run 5) is one that woke early.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6194386942 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6194386942). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-15T14:23:31Z. --- Small corrections to my comment above, rechecked against the same five runs. The conclusion does not change. - There were 66,287 frames, not 66,283. - The median wake after `DrawThread` returned was 0.61–0.80 ms per thread and run, not 0.6–0.75 ms. - "The helpers wake about 0.2–0.35 ms before `DrawThread`'s first upload" holds for only some of them. In run 4, Geometry, Shadow and Decal woke 0.23–0.30 ms before it and Extra Geometry 0.52 ms after. In run 5, Extra Geometry woke 0.34 ms before it, Decal 0.03 ms before, and Geometry and Shadow after it. The helper that uploaded ahead of `DrawThread` in each run (Shadow in run 4, Extra Geometry in run 5) is one that woke early.
mrfelek commented 2026-10-15 21:06:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by mrfelek on 2026-10-15T21:06:49Z.


Astro Bot on NVIDIA: presenter checked, assert not reproduced yet

Setup

  • Build: origin/main 44df21632, Release, Linux
  • Game: ASTRO BOT (PPSA21564), relinked with the origin/main relinker
  • Host: Ryzen 9 5950X, RTX 3080 Ti, NVIDIA 615.71.09

Results

Run Time Result
Scripted (X presses every 2 s), APS5_PROFILE_DRAW=1 240 s 22 presenter summaries, 50 to 260 presents per 10 s, 0 dropped; level started; no assert
Scripted, no profile flag 300 s level started (intro_next); no presenter summaries printed, since the flag was off; no assert
Manual play, no profile flag about 6 min window ran and I closed it; no assert seen in the log
  • The earlier "no presented frames" in my runs was the missing APS5_PROFILE_DRAW flag, not a stall.
  • None of the runs reached the robot cutscene, so the assert from this issue is not reproduced on this hardware yet.

Is there a setting or save point that gets to the robot cutscene faster? If so, I can run it on the same build.

AI-assisted; the build and runs are from my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6202284901 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6202284901). Originally posted by [mrfelek](https://github.com/mrfelek) on 2026-10-15T21:06:49Z. --- ## Astro Bot on NVIDIA: presenter checked, assert not reproduced yet **Setup** - Build: `origin/main` `44df21632`, Release, Linux - Game: ASTRO BOT (PPSA21564), relinked with the `origin/main` relinker - Host: Ryzen 9 5950X, RTX 3080 Ti, NVIDIA 615.71.09 **Results** | Run | Time | Result | |---|---|---| | Scripted (X presses every 2 s), `APS5_PROFILE_DRAW=1` | 240 s | 22 presenter summaries, 50 to 260 presents per 10 s, 0 dropped; level started; no assert | | Scripted, no profile flag | 300 s | level started (`intro_next`); no presenter summaries printed, since the flag was off; no assert | | Manual play, no profile flag | about 6 min | window ran and I closed it; no assert seen in the log | - The earlier "no presented frames" in my runs was the missing `APS5_PROFILE_DRAW` flag, not a stall. - None of the runs reached the robot cutscene, so the assert from this issue is not reproduced on this hardware yet. Is there a setting or save point that gets to the robot cutscene faster? If so, I can run it on the same build. AI-assisted; the build and runs are from my machine.
hugodearaujo commented 2026-10-16 11:30:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-16T11:30:49Z.


@mrfelek Thanks for checking. I don't know of a shortcut, but the scene is close to the start. At the save selection, Start Over (Triangle) starts a New Game on that slot, and the robot cutscene inside the mothership follows with no input. In my runs the assert came about 80 s after New Game; in the two runs I logged frame by frame, it hit at the first frame of the crowd shot. Pressing X at the save selection continues the saved game instead, which is probably why your scripted runs went to a level. Start Over may replace that slot's progress, so keep a copy of the save data if you need it.

On NVIDIA the scene may well pass: @oneandonlydean's 152 runs on an RTX 4090 went through it without the assert. On my RX 9070 XT (RADV) it hit in 2 of 5 runs on main, and in 70–80% of runs with #5309 and #5390. If it passes on your machine, the useful number is how long DrawThread is held at the flip submission in that scene, which was 95–101 ms per frame here: the Submission queue and dequeue rows of frame-timing.log from a build with -DAPS5_ENABLE_TIMING_LOG=ON, as suggested above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6214538805 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6214538805). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-16T11:30:49Z. --- @mrfelek Thanks for checking. I don't know of a shortcut, but the scene is close to the start. At the save selection, Start Over (Triangle) starts a New Game on that slot, and the robot cutscene inside the mothership follows with no input. In my runs the assert came about 80 s after New Game; in the two runs I logged frame by frame, it hit at the first frame of the crowd shot. Pressing X at the save selection continues the saved game instead, which is probably why your scripted runs went to a level. Start Over may replace that slot's progress, so keep a copy of the save data if you need it. On NVIDIA the scene may well pass: @oneandonlydean's 152 runs on an RTX 4090 went through it without the assert. On my RX 9070 XT (RADV) it hit in 2 of 5 runs on `main`, and in 70–80% of runs with #5309 and #5390. If it passes on your machine, the useful number is how long `DrawThread` is held at the flip submission in that scene, which was 95–101 ms per frame here: the `Submission queue` and `dequeue` rows of `frame-timing.log` from a build with `-DAPS5_ENABLE_TIMING_LOG=ON`, as suggested above.
frankea commented 2026-10-18 06:24:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-18T06:24:59Z.


NVIDIA datapoint, as asked above: PPSA21564 on an RTX 4090, current main built with -DAPS5_ENABLE_TIMING_LOG=ON, New Game from the save selection, five runs. The crowd scene passed in all five (no too many objects/batches assert, no other stop), so here are the Submission queue and dequeue rows for that scene. Short version: on this machine the queue 0 worker is about 270 ms behind during the crowd shot (the hold at the flip submission is ~225 ms per frame), after ~110 ms / ~90 ms in the mothership interior just before it, and the very first crowd frame holds DrawThread for about 0.9 s. That is 2.5 to 10 times the 95-101 ms you measured on the RX 9070 XT, and the title still gets through.

Setup. ASTRO BOT PPSA21564 01.018.000, Windows 11 (26200), RTX 4090 (NVIDIA 616.92), AMD Ryzen 7 5800X (8 cores, SMT on, 16 logical CPUs), MinGW-w64 GCC 15.2.0 r7 (UCRT). main 3de84fa10 (2026-10-18 17:22 +13:00) in a fresh worktree, Release, libs and relinker targets only, -DBUILD_TESTING=OFF -DAPS5_ENABLE_TIMING_LOG=ON; app.exe relinked with that tree's relinker (--windows --registry). Windowed, the 3840x2160 guest output presented at 2016x1134 in an interactive desktop session (RDP), shader disk cache warm (0 misses in all five runs), no other APS5_* switch. Box idle otherwise, one run at a time, 480 s cap per run.

Scene and input. The save slot was empty, so the save selection offers NEW GAME 1 on Cross; no Start Over was needed and the save-data memory slot (_sd_mem/u268435456/slot0.bin) was restored from a backup before every run so each run saw the same empty slot. Mouse-bound pad buttons do not reach this title on current main (#6569 keeps mouse buttons off the pad while the title has sceMouseOpen, and this title does), so the presses went through the command file (APS5_PAD_INPUT_FILE + tools/pad_input.py cross --hold-ms 700): Cross every 6 s from the first presented frame, which skips the logos (title screen ~55 s after launch), until a screen capture classified the save selection, then one more Cross for New Game and nothing after that. From there the title runs on its own: warp tunnel for ~100 s, then the space cutscene (planet, asteroids, the mothership from outside), the interior shot, and the crowd shot 212-214 s after New Game, which is where your assert hit.

What the rows are. One [FrameTiming] line per flip. Submission.queue=(count,sum_ms,max_ms) is, per queue 0 submission of that frame, the time from its enqueue until the worker starts it (orderedAt - enqueuedAt); Submission.dequeue is dequeuedAt - enqueuedAt and is identical here (order_wait is 0 throughout). The hold itself is Submission.flip_room_wait (roomReadyAt - validatedAt, which spans waitForFlipRoom and holdFlipBehindWorker) and Submission.accept (the whole Driver::Submit call); I list them beside the queue rows since they are what DrawThread waits in. The title submits 6 queue 0 command buffers per frame in this scene, so sum is over 6 and max is the one that waited longest (the flip submission).

run New Game crowd shot result crowd scene (first 300 frames): FPS, frame Submission.queue max per frame median / p90 flip_room_wait max median before the crowd shot (50 frames): FPS, queue max, hold
1 75 s after launch +213 s (frame 5097) passed 4.3 FPS, 230 ms 269 / 384 ms 225 ms 10.7 FPS, 111 ms, 91 ms
2 75 s +214 s (frame 5059) passed 4.4 FPS, 229 ms 269 / 383 ms 224 ms 9.7 FPS, 122 ms, 102 ms
3 75 s +212 s (frame 5076) passed 4.3 FPS, 230 ms 265 / 384 ms 225 ms 10.6 FPS, 113 ms, 92 ms
4 75 s +212 s (frame 5023) passed 4.4 FPS, 229 ms 267 / 382 ms 225 ms 10.0 FPS, 118 ms, 98 ms
5 70 s +214 s (frame 4924) passed 4.4 FPS, 229 ms 267 / 383 ms 225 ms 9.6 FPS, 122 ms, 102 ms

The transition is the same in every run: four frames of ~95 ms with the queue delay at ~110 ms and the hold at ~90 ms, then one frame of 0.9 s in which the flip submission waits 0.9 s in queue 0 (queue max 954-994 ms, flip_room_wait 902-947 ms), two or three frames at ~120 ms, and from then on the crowd shot at 220-230 ms per frame with queue max alternating between ~255 and ~365 ms and the hold at ~215-230 ms. The per-frame rows around that first crowd frame, and one full line from inside the scene, are in the details below. Full frame-timing.log files (45 MB per run) and the 10 s captures are kept; I can share them if useful.

Rows at the crowd-shot transition, all five runs (frame, flip interval ms, queue 0 submissions, Submission.queue sum / max ms, Submission.dequeue max ms, Submission.flip_room_wait max ms, Submission.accept max ms)
run 1 (New Game at frame 1763, crowd shot at frame 5097, 01:10:59 box time)
5089     91.9   6    533.5   109.6   109.6    88.1    88.3
5090     99.2   6    539.7   110.7   110.7    89.1    89.5
5091     99.2   6    580.6   120.3   120.3    95.9    96.1
5092    907.4   6   2238.3   591.8   591.8    57.2    57.4
5093    125.6   6   4723.1   953.7   953.7   902.1   902.3
5094    118.9   6    781.2   161.1   161.1   119.5   119.9
5095    115.5   6    756.2   157.0   157.0   114.8   115.0
5096    184.8   6    792.9   152.2   152.2   110.8   111.0
5097    220.7   6   1373.8   320.8   320.8   174.3   174.5
5098    220.1   6   1355.9   255.1   255.1   216.0   216.2
5099    223.8   6   1582.5   364.5   364.5   215.2   215.5
5100    220.3   6   1374.1   257.1   257.1   218.9   219.2
5101    217.0   6   1335.8   253.2   253.2   211.1   211.3
5102    222.3   6   1544.8   358.9   358.9   211.9   212.2
5103    221.9   6   1360.5   254.9   254.9   217.5   217.7
5104    222.4   6   1574.6   362.7   362.7   217.1   217.4

run 2 (New Game at frame 1742, crowd shot at frame 5059, 01:19:38 box time)
5051    105.6   6    583.6   119.9   119.9    99.7    99.9
5052    104.9   6    607.2   127.5   127.5   102.0   102.2
5053    110.0   6    607.0   124.7   124.7   102.3   102.5
5054    105.2   6    618.1   126.1   126.1   105.9   106.3
5055    945.0   6   2415.8   628.5   628.5    67.1    67.3
5056    117.5   6   4895.4   986.1   986.1   940.6   940.8
5057    116.7   6    759.5   159.6   159.6   112.4   112.6
5058    126.5   6    781.9   166.2   166.2   112.1   112.3
5059    182.3   6   1003.7   236.0   236.0   121.5   121.7
5060    222.7   6   1152.7   214.3   214.3   173.1   173.4
5061    219.2   6   1361.8   254.9   254.9   217.5   217.7
5062    219.8   6   1561.9   360.4   360.4   214.2   214.4
5063    218.0   6   1352.2   253.6   253.6   214.9   215.2
5064    225.2   6   1324.3   249.4   249.4   208.8   209.0
5065    225.8   6   1378.1   258.5   258.5   220.2   220.4
5066    224.4   6   1390.0   260.5   260.5   220.2   220.5

run 3 (New Game at frame 1755, crowd shot at frame 5076, 01:28:14 box time)
5068     94.5   6    554.9   117.8   117.8    91.3    91.5
5069     95.9   6    536.6   110.4   110.4    90.4    90.6
5070    102.4   6    561.9   114.8   114.8    93.5    93.8
5071     98.9   6    591.1   121.1   121.1    99.3    99.5
5072    951.5   6   2415.8   629.6   629.6    63.4    63.7
5073    119.5   6   4931.9   993.9   993.9   947.0   947.2
5074    125.0   6    782.2   165.1   165.1   115.1   115.3
5075    116.4   6    790.1   165.5   165.5   120.1   120.3
5076    185.9   6    950.4   225.5   225.5   111.9   112.1
5077    217.7   6   1164.3   216.4   216.4   176.3   176.6
5078    221.7   6   1343.3   252.6   252.6   212.8   213.0
5079    219.6   6   1575.3   362.3   362.3   217.2   217.4
5080    221.1   6   1557.0   360.7   360.7   215.1   215.3
5081    224.0   6   1564.1   360.6   360.6   211.9   212.1
5082    220.4   6   1371.8   257.3   257.3   218.4   218.7
5083    222.9   6   1581.0   366.0   366.0   215.5   215.7

run 4 (New Game at frame 1733, crowd shot at frame 5023, 01:36:37 box time)
5015    103.5   6    586.1   123.6   123.6    97.1    97.4
5016    100.9   6    590.7   120.7   120.7   100.7   101.0
5017    104.1   6    580.4   119.3   119.3    97.2    97.5
5018    950.8   6   2462.6   631.0   631.0    65.0    65.2
5019    121.0   6   4924.3   988.9   988.9   946.3   946.5
5020    123.4   6    776.0   163.8   163.8   116.1   116.4
5021    123.0   6    794.0   165.2   165.2   118.9   119.1
5022    188.2   6    835.8   157.1   157.1   118.7   118.9
5023    219.5   6   1166.9   220.3   220.3   178.3   178.5
5024    219.6   6   1341.8   252.9   252.9   214.4   214.6
5025    222.4   6   1357.4   255.3   255.3   214.3   214.5
5026    224.4   6   1387.5   262.6   262.6   217.9   218.2
5027    226.1   6   1371.3   257.5   257.5   213.6   213.9
5028    222.2   6   1598.3   366.9   366.9   220.9   221.2
5029    221.8   6   1355.4   254.9   254.9   217.5   217.7
5030    219.9   6   1362.8   255.9   255.9   217.1   217.4

run 5 (New Game at frame 1673, crowd shot at frame 4924, 01:44:55 box time)
4916    104.2   6    595.7   121.9   121.9   102.2   102.4
4917    106.5   6    593.4   120.9   120.9   101.7   101.9
4918    107.9   6    608.5   124.4   124.4   103.0   103.2
4919    910.9   6   2306.3   603.4   603.4    71.4    71.6
4920    118.8   6   4717.6   953.2   953.2   906.8   907.0
4921    115.4   6    745.6   154.2   154.2   113.8   114.0
4922    123.8   6    741.8   153.1   153.1   111.0   111.2
4923    182.3   6    824.3   156.6   156.6   118.5   118.9
4924    221.4   6   1146.8   210.8   210.8   174.3   174.4
4925    225.1   6   1354.5   254.8   254.8   216.7   216.9
4926    222.8   6   1600.0   368.8   368.8   220.5   220.7
4927    222.5   6   1360.3   256.6   256.6   217.8   218.1
4928    221.4   6   1349.3   255.5   255.5   213.1   213.4
4929    222.2   6   1372.2   258.3   258.3   216.6   216.8
4930    224.5   6   1587.8   365.9   365.9   217.5   217.7
4931    220.6   6   1359.0   255.8   255.8   219.2   219.4

One complete line from the crowd shot of run 1 (frame 5110), Driver.*, Shader.*, Vulkan.* and Async.* metrics removed:

[FrameTiming] frame=5110 submissions=42943:42951 output=1 flip=42951:33939 buffer=1 argument=5110 endpoint=flip_complete 
display_confirmed=0 worker_queue=0 background_metrics=completed_since_previous_flip first_submit_at_ms=15177227.689 
first_execute_at_ms=15177447.939 flip_packet_at_ms=15177671.396 flip_complete_at_ms=15177673.112 first_submit_to_flip_ms=445.423 
flip_submit_to_complete_ms=444.535 first_submit_to_execute_ms=220.251 execute_to_flip_packet_ms=223.457 flip_packet_to_complete_ms=1.716 
worker_begin_at_ms=15177447.748 worker_span_ms=223.648 worker_accounted_ms=222.262 worker_unattributed_ms=1.386 flip_interval_ms=224.210 
batches_at_flip=365922 unsignaled_at_flip=0 batches_at_blit=365922 batches_after_flip=1 gpu_busy_ms=0.000 gpu_gap_ms=0.000 
last_submit_after_flip_ms=0.319 blit_submit_after_flip_ms=0.319 packet_count=7248 packet_dwords=77217 slow_packet_submission=42949 
slow_packet_offset=660 slow_packet_opcode=53 slow_packet_ms=113.911 metrics=inclusive(count,sum_ms,max_ms[,bytes]) 
Submission.accept=(6,219.964,219.232) Submission.copy=(5,0.183,0.051,342008) Submission.dequeue=(6,1370.037,255.888) 
Submission.flip_room_wait=(5,218.981,218.949) Submission.order_wait=(6,0.000,0.000) Submission.queue=(6,1370.037,255.888) 
Submission.reserve_enqueue=(5,0.117,0.064) Submission.validate=(5,0.682,0.293) VideoOut.queue=(1,0.016,0.016) 
VideoOut.Flip.completion_mutex_wait=(1,0.003,0.003) VideoOut.Flip.config_mutex_wait=(1,0.000,0.000) 
VideoOut.Flip.notify_game=(1,0.021,0.021) VideoOut.Flip.present=(1,1.544,1.544) VideoOut.Flip.tail=(1,0.001,0.001) 
VideoOut.Flip.total=(1,1.672,1.672) VideoOut.Flip.validate=(1,0.001,0.001) VideoOut.Flip.vblank_wait=(1,0.001,0.001) 
VideoOut.Flip.window_prepare=(1,0.003,0.003) VideoOut.Flip.window_title=(1,0.099,0.099) VideoOut.Readiness.locks_validate=(1,0.001,0.001) 
VideoOut.Readiness.tail=(1,0.001,0.001) VideoOut.Readiness.total=(1,0.002,0.002)

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6246536976 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6246536976). Originally posted by [frankea](https://github.com/frankea) on 2026-10-18T06:24:59Z. --- NVIDIA datapoint, as asked above: PPSA21564 on an RTX 4090, current `main` built with `-DAPS5_ENABLE_TIMING_LOG=ON`, New Game from the save selection, five runs. The crowd scene passed in all five (no `too many objects/batches` assert, no other stop), so here are the `Submission queue` and `dequeue` rows for that scene. Short version: on this machine the queue 0 worker is about 270 ms behind during the crowd shot (the hold at the flip submission is ~225 ms per frame), after ~110 ms / ~90 ms in the mothership interior just before it, and the very first crowd frame holds `DrawThread` for about 0.9 s. That is 2.5 to 10 times the 95-101 ms you measured on the RX 9070 XT, and the title still gets through. **Setup.** ASTRO BOT PPSA21564 **01.018.000**, Windows 11 (26200), RTX 4090 (NVIDIA 616.92), AMD Ryzen 7 5800X (8 cores, SMT on, 16 logical CPUs), MinGW-w64 GCC 15.2.0 r7 (UCRT). `main` 3de84fa10 (2026-10-18 17:22 +13:00) in a fresh worktree, Release, `libs` and `relinker` targets only, `-DBUILD_TESTING=OFF -DAPS5_ENABLE_TIMING_LOG=ON`; `app.exe` relinked with that tree's relinker (`--windows --registry`). Windowed, the 3840x2160 guest output presented at 2016x1134 in an interactive desktop session (RDP), shader disk cache warm (0 misses in all five runs), no other `APS5_*` switch. Box idle otherwise, one run at a time, 480 s cap per run. **Scene and input.** The save slot was empty, so the save selection offers `NEW GAME 1` on Cross; no Start Over was needed and the save-data memory slot (`_sd_mem/u268435456/slot0.bin`) was restored from a backup before every run so each run saw the same empty slot. Mouse-bound pad buttons do not reach this title on current `main` (#6569 keeps mouse buttons off the pad while the title has `sceMouseOpen`, and this title does), so the presses went through the command file (`APS5_PAD_INPUT_FILE` + `tools/pad_input.py cross --hold-ms 700`): Cross every 6 s from the first presented frame, which skips the logos (title screen ~55 s after launch), until a screen capture classified the save selection, then one more Cross for New Game and nothing after that. From there the title runs on its own: warp tunnel for ~100 s, then the space cutscene (planet, asteroids, the mothership from outside), the interior shot, and the crowd shot 212-214 s after New Game, which is where your assert hit. **What the rows are.** One `[FrameTiming]` line per flip. `Submission.queue=(count,sum_ms,max_ms)` is, per queue 0 submission of that frame, the time from its enqueue until the worker starts it (`orderedAt - enqueuedAt`); `Submission.dequeue` is `dequeuedAt - enqueuedAt` and is identical here (`order_wait` is 0 throughout). The hold itself is `Submission.flip_room_wait` (`roomReadyAt - validatedAt`, which spans `waitForFlipRoom` and `holdFlipBehindWorker`) and `Submission.accept` (the whole `Driver::Submit` call); I list them beside the queue rows since they are what `DrawThread` waits in. The title submits 6 queue 0 command buffers per frame in this scene, so `sum` is over 6 and `max` is the one that waited longest (the flip submission). | run | New Game | crowd shot | result | crowd scene (first 300 frames): FPS, frame | `Submission.queue` max per frame median / p90 | `flip_room_wait` max median | before the crowd shot (50 frames): FPS, queue max, hold | |---|---|---|---|---|---|---|---| | 1 | 75 s after launch | +213 s (frame 5097) | passed | 4.3 FPS, 230 ms | 269 / 384 ms | 225 ms | 10.7 FPS, 111 ms, 91 ms | | 2 | 75 s | +214 s (frame 5059) | passed | 4.4 FPS, 229 ms | 269 / 383 ms | 224 ms | 9.7 FPS, 122 ms, 102 ms | | 3 | 75 s | +212 s (frame 5076) | passed | 4.3 FPS, 230 ms | 265 / 384 ms | 225 ms | 10.6 FPS, 113 ms, 92 ms | | 4 | 75 s | +212 s (frame 5023) | passed | 4.4 FPS, 229 ms | 267 / 382 ms | 225 ms | 10.0 FPS, 118 ms, 98 ms | | 5 | 70 s | +214 s (frame 4924) | passed | 4.4 FPS, 229 ms | 267 / 383 ms | 225 ms | 9.6 FPS, 122 ms, 102 ms | The transition is the same in every run: four frames of ~95 ms with the queue delay at ~110 ms and the hold at ~90 ms, then one frame of 0.9 s in which the flip submission waits 0.9 s in queue 0 (`queue` max 954-994 ms, `flip_room_wait` 902-947 ms), two or three frames at ~120 ms, and from then on the crowd shot at 220-230 ms per frame with `queue` max alternating between ~255 and ~365 ms and the hold at ~215-230 ms. The per-frame rows around that first crowd frame, and one full line from inside the scene, are in the details below. Full `frame-timing.log` files (45 MB per run) and the 10 s captures are kept; I can share them if useful. <details><summary>Rows at the crowd-shot transition, all five runs (frame, flip interval ms, queue 0 submissions, <code>Submission.queue</code> sum / max ms, <code>Submission.dequeue</code> max ms, <code>Submission.flip_room_wait</code> max ms, <code>Submission.accept</code> max ms)</summary> ```text run 1 (New Game at frame 1763, crowd shot at frame 5097, 01:10:59 box time) 5089 91.9 6 533.5 109.6 109.6 88.1 88.3 5090 99.2 6 539.7 110.7 110.7 89.1 89.5 5091 99.2 6 580.6 120.3 120.3 95.9 96.1 5092 907.4 6 2238.3 591.8 591.8 57.2 57.4 5093 125.6 6 4723.1 953.7 953.7 902.1 902.3 5094 118.9 6 781.2 161.1 161.1 119.5 119.9 5095 115.5 6 756.2 157.0 157.0 114.8 115.0 5096 184.8 6 792.9 152.2 152.2 110.8 111.0 5097 220.7 6 1373.8 320.8 320.8 174.3 174.5 5098 220.1 6 1355.9 255.1 255.1 216.0 216.2 5099 223.8 6 1582.5 364.5 364.5 215.2 215.5 5100 220.3 6 1374.1 257.1 257.1 218.9 219.2 5101 217.0 6 1335.8 253.2 253.2 211.1 211.3 5102 222.3 6 1544.8 358.9 358.9 211.9 212.2 5103 221.9 6 1360.5 254.9 254.9 217.5 217.7 5104 222.4 6 1574.6 362.7 362.7 217.1 217.4 run 2 (New Game at frame 1742, crowd shot at frame 5059, 01:19:38 box time) 5051 105.6 6 583.6 119.9 119.9 99.7 99.9 5052 104.9 6 607.2 127.5 127.5 102.0 102.2 5053 110.0 6 607.0 124.7 124.7 102.3 102.5 5054 105.2 6 618.1 126.1 126.1 105.9 106.3 5055 945.0 6 2415.8 628.5 628.5 67.1 67.3 5056 117.5 6 4895.4 986.1 986.1 940.6 940.8 5057 116.7 6 759.5 159.6 159.6 112.4 112.6 5058 126.5 6 781.9 166.2 166.2 112.1 112.3 5059 182.3 6 1003.7 236.0 236.0 121.5 121.7 5060 222.7 6 1152.7 214.3 214.3 173.1 173.4 5061 219.2 6 1361.8 254.9 254.9 217.5 217.7 5062 219.8 6 1561.9 360.4 360.4 214.2 214.4 5063 218.0 6 1352.2 253.6 253.6 214.9 215.2 5064 225.2 6 1324.3 249.4 249.4 208.8 209.0 5065 225.8 6 1378.1 258.5 258.5 220.2 220.4 5066 224.4 6 1390.0 260.5 260.5 220.2 220.5 run 3 (New Game at frame 1755, crowd shot at frame 5076, 01:28:14 box time) 5068 94.5 6 554.9 117.8 117.8 91.3 91.5 5069 95.9 6 536.6 110.4 110.4 90.4 90.6 5070 102.4 6 561.9 114.8 114.8 93.5 93.8 5071 98.9 6 591.1 121.1 121.1 99.3 99.5 5072 951.5 6 2415.8 629.6 629.6 63.4 63.7 5073 119.5 6 4931.9 993.9 993.9 947.0 947.2 5074 125.0 6 782.2 165.1 165.1 115.1 115.3 5075 116.4 6 790.1 165.5 165.5 120.1 120.3 5076 185.9 6 950.4 225.5 225.5 111.9 112.1 5077 217.7 6 1164.3 216.4 216.4 176.3 176.6 5078 221.7 6 1343.3 252.6 252.6 212.8 213.0 5079 219.6 6 1575.3 362.3 362.3 217.2 217.4 5080 221.1 6 1557.0 360.7 360.7 215.1 215.3 5081 224.0 6 1564.1 360.6 360.6 211.9 212.1 5082 220.4 6 1371.8 257.3 257.3 218.4 218.7 5083 222.9 6 1581.0 366.0 366.0 215.5 215.7 run 4 (New Game at frame 1733, crowd shot at frame 5023, 01:36:37 box time) 5015 103.5 6 586.1 123.6 123.6 97.1 97.4 5016 100.9 6 590.7 120.7 120.7 100.7 101.0 5017 104.1 6 580.4 119.3 119.3 97.2 97.5 5018 950.8 6 2462.6 631.0 631.0 65.0 65.2 5019 121.0 6 4924.3 988.9 988.9 946.3 946.5 5020 123.4 6 776.0 163.8 163.8 116.1 116.4 5021 123.0 6 794.0 165.2 165.2 118.9 119.1 5022 188.2 6 835.8 157.1 157.1 118.7 118.9 5023 219.5 6 1166.9 220.3 220.3 178.3 178.5 5024 219.6 6 1341.8 252.9 252.9 214.4 214.6 5025 222.4 6 1357.4 255.3 255.3 214.3 214.5 5026 224.4 6 1387.5 262.6 262.6 217.9 218.2 5027 226.1 6 1371.3 257.5 257.5 213.6 213.9 5028 222.2 6 1598.3 366.9 366.9 220.9 221.2 5029 221.8 6 1355.4 254.9 254.9 217.5 217.7 5030 219.9 6 1362.8 255.9 255.9 217.1 217.4 run 5 (New Game at frame 1673, crowd shot at frame 4924, 01:44:55 box time) 4916 104.2 6 595.7 121.9 121.9 102.2 102.4 4917 106.5 6 593.4 120.9 120.9 101.7 101.9 4918 107.9 6 608.5 124.4 124.4 103.0 103.2 4919 910.9 6 2306.3 603.4 603.4 71.4 71.6 4920 118.8 6 4717.6 953.2 953.2 906.8 907.0 4921 115.4 6 745.6 154.2 154.2 113.8 114.0 4922 123.8 6 741.8 153.1 153.1 111.0 111.2 4923 182.3 6 824.3 156.6 156.6 118.5 118.9 4924 221.4 6 1146.8 210.8 210.8 174.3 174.4 4925 225.1 6 1354.5 254.8 254.8 216.7 216.9 4926 222.8 6 1600.0 368.8 368.8 220.5 220.7 4927 222.5 6 1360.3 256.6 256.6 217.8 218.1 4928 221.4 6 1349.3 255.5 255.5 213.1 213.4 4929 222.2 6 1372.2 258.3 258.3 216.6 216.8 4930 224.5 6 1587.8 365.9 365.9 217.5 217.7 4931 220.6 6 1359.0 255.8 255.8 219.2 219.4 ``` One complete line from the crowd shot of run 1 (frame 5110), `Driver.*`, `Shader.*`, `Vulkan.*` and `Async.*` metrics removed: ```text [FrameTiming] frame=5110 submissions=42943:42951 output=1 flip=42951:33939 buffer=1 argument=5110 endpoint=flip_complete display_confirmed=0 worker_queue=0 background_metrics=completed_since_previous_flip first_submit_at_ms=15177227.689 first_execute_at_ms=15177447.939 flip_packet_at_ms=15177671.396 flip_complete_at_ms=15177673.112 first_submit_to_flip_ms=445.423 flip_submit_to_complete_ms=444.535 first_submit_to_execute_ms=220.251 execute_to_flip_packet_ms=223.457 flip_packet_to_complete_ms=1.716 worker_begin_at_ms=15177447.748 worker_span_ms=223.648 worker_accounted_ms=222.262 worker_unattributed_ms=1.386 flip_interval_ms=224.210 batches_at_flip=365922 unsignaled_at_flip=0 batches_at_blit=365922 batches_after_flip=1 gpu_busy_ms=0.000 gpu_gap_ms=0.000 last_submit_after_flip_ms=0.319 blit_submit_after_flip_ms=0.319 packet_count=7248 packet_dwords=77217 slow_packet_submission=42949 slow_packet_offset=660 slow_packet_opcode=53 slow_packet_ms=113.911 metrics=inclusive(count,sum_ms,max_ms[,bytes]) Submission.accept=(6,219.964,219.232) Submission.copy=(5,0.183,0.051,342008) Submission.dequeue=(6,1370.037,255.888) Submission.flip_room_wait=(5,218.981,218.949) Submission.order_wait=(6,0.000,0.000) Submission.queue=(6,1370.037,255.888) Submission.reserve_enqueue=(5,0.117,0.064) Submission.validate=(5,0.682,0.293) VideoOut.queue=(1,0.016,0.016) VideoOut.Flip.completion_mutex_wait=(1,0.003,0.003) VideoOut.Flip.config_mutex_wait=(1,0.000,0.000) VideoOut.Flip.notify_game=(1,0.021,0.021) VideoOut.Flip.present=(1,1.544,1.544) VideoOut.Flip.tail=(1,0.001,0.001) VideoOut.Flip.total=(1,1.672,1.672) VideoOut.Flip.validate=(1,0.001,0.001) VideoOut.Flip.vblank_wait=(1,0.001,0.001) VideoOut.Flip.window_prepare=(1,0.003,0.003) VideoOut.Flip.window_title=(1,0.099,0.099) VideoOut.Readiness.locks_validate=(1,0.001,0.001) VideoOut.Readiness.tail=(1,0.001,0.001) VideoOut.Readiness.total=(1,0.002,0.002) ``` </details> AI-assisted: yes (Claude Code)
hugodearaujo commented 2026-10-18 13:51:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-18T13:51:28Z.


@frankea Thank you, that is the number that was missing. On your RTX 4090 the flip submission is held about 225 ms per frame in the crowd shot (0.9 s on its first frame), against 95-101 ms on my RX 9070 XT, and the scene passes in all five runs. So a longer hold, with the queue 0 worker further behind, does not make the assert more likely, which fits @oneandonlydean's reading that the hold is not what lets the helpers get ahead.

On my machine the two assert frames were the first frame of the crowd shot, and in each the helper that uploaded bones before DrawThread had woken 0.23 ms (run 4) and 0.34 ms (run 5) before DrawThread's first upload. I have not measured that order on NVIDIA, so I can't say yet whether it is what differs between the two machines.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6250709168 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5645#issuecomment-6250709168). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-18T13:51:28Z. --- @frankea Thank you, that is the number that was missing. On your RTX 4090 the flip submission is held about 225 ms per frame in the crowd shot (0.9 s on its first frame), against 95-101 ms on my RX 9070 XT, and the scene passes in all five runs. So a longer hold, with the queue 0 worker further behind, does not make the assert more likely, which fits @oneandonlydean's reading that the hold is not what lets the helpers get ahead. On my machine the two assert frames were the first frame of the crowd shot, and in each the helper that uploaded bones before `DrawThread` had woken 0.23 ms (run 4) and 0.34 ms (run 5) before `DrawThread`'s first upload. I have not measured that order on NVIDIA, so I can't say yet whether it is what differs between the two machines.
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
boykopovar/AnyPS5#5645
No description provided.