tools/game_run_summary.py: name device lost and title breakpoint in the END words (GAME-RUN-SUMMARY-END-NAMES) #2844

Closed
leonida/mandy
aznohonza wants to merge 0 commits from tools/summary-end-names into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

aznohonza commented 2026-12-01 06:19:01 +00:00

tools/game_run_summary.py prints process exit 3 (0x00000003), no exit event in the startup trace for a run the title ended in its own device-removed handler. docs/agent_collaboration.md fixes the vocabulary for RUN ... END: time limit | process crash | device lost | stall | watchdog exit | title breakpoint. The summary now uses two of those words:

  • the runtime's [rt] vulkan: the device was lost (...) line becomes end: device lost (process exit 3);
  • exit 3 with an 0x80000003 exception becomes end: title breakpoint (process exit 3). The code is matched from any exception in the trace, normalised for 0x and case, so a later teardown fault does not hide it.

The time limit, and a guest exit before a device-lost line, keep their own end, so a timed-out or cleanly exited run is not renamed by a loss written during teardown. An exit 3 with an 0x80000003 exception is a title breakpoint when no device loss is present; a device loss without an exit event wins over the breakpoint, because the breakpoint is its handler. A plain exit 3 with no such exception keeps the old fallback, and the loader-error and no-exit-code branches are unchanged.

The docstring names the mapping and says the [rt] lines are the C++ gta6rt runtime's; the native Rust runtime's Leonida: host GPU failure: ... device removed lines are not read.

Tested: python3 -I tests/test_game_run_summary.py (15 tests, including the two new endings, a later teardown fault, a bare 80000003, and the exit/time-limit ordering) and python3 -I tests/test_run_game_wine.py (9). No game files, no Wine, no GPU.

Claimed in #2570 as GAME-RUN-SUMMARY-END-NAMES (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7302707897).

AI-assisted.

`tools/game_run_summary.py` prints `process exit 3 (0x00000003), no exit event in the startup trace` for a run the title ended in its own device-removed handler. `docs/agent_collaboration.md` fixes the vocabulary for `RUN ... END`: `time limit | process crash | device lost | stall | watchdog exit | title breakpoint`. The summary now uses two of those words: - the runtime's `[rt] vulkan: the device was lost (...)` line becomes `end: device lost (process exit 3)`; - exit 3 with an `0x80000003` exception becomes `end: title breakpoint (process exit 3)`. The code is matched from any exception in the trace, normalised for `0x` and case, so a later teardown fault does not hide it. The time limit, and a guest exit before a device-lost line, keep their own end, so a timed-out or cleanly exited run is not renamed by a loss written during teardown. An exit 3 with an `0x80000003` exception is a `title breakpoint` when no device loss is present; a device loss without an exit event wins over the breakpoint, because the breakpoint is its handler. A plain exit 3 with no such exception keeps the old fallback, and the loader-error and no-exit-code branches are unchanged. The docstring names the mapping and says the `[rt]` lines are the C++ `gta6rt` runtime's; the native Rust runtime's `Leonida: host GPU failure: ... device removed` lines are not read. Tested: `python3 -I tests/test_game_run_summary.py` (15 tests, including the two new endings, a later teardown fault, a bare `80000003`, and the exit/time-limit ordering) and `python3 -I tests/test_run_game_wine.py` (9). No game files, no Wine, no GPU. Claimed in #2570 as GAME-RUN-SUMMARY-END-NAMES (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7302707897). AI-assisted.
KelboLive reviewed 2026-12-01 06:27:02 +00:00
KelboLive left a comment
No description provided.
The rules fit the run folder they are written for: the C++ runtime writes exactly `[rt] vulkan: the device was lost (` (`runtime/src/vulkan_backend.h:617`), the startup trace writes a lowercase `0x80000003`, and the four synthetic endings read as intended — device lost only → `device lost (process exit 3)`, breakpoint only → `title breakpoint (process exit 3)`, both → device lost (first branch), neither → the generic line. 13 tests pass and `check_no_game_data` is clean. Two ordering questions, both about which end a *real* folder would report: 1. **`device_lost` is checked before the guest exit and the time limit**, so a loss line logged during teardown after a normal exit reads `device lost (process exit 0)`, and after a time limit `device lost (process exit 124)`. If the loss can be logged after the guest has already exited, the tool reports the wrong end for a run that exited cleanly. Prefer the exit event when one exists, or order by timestamp rather than by branch priority. 2. **The breakpoint uses the *last* exception**, so a `0x80000003` followed by a later teardown access violation (`0xc0000005`, which the repo docs already note) falls back to `process exit 3 (0x00000003)` instead of `title breakpoint` — I confirmed it. "Any `0x80000003` together with exit 3" would be safer than "the last one is 0x80000003". One scope note: this machine's real logs (`Leonida: host GPU failure: … device removed (0x887A0005)`, the native Rust runtime) do **not** produce `[rt]` lines, so the new rule is blind to them. That is fine if the summary is documented as Wine/`gta6rt` only — say so in the docstring/body, or add the native wording as a second device-lost rule, since that is the form most reports on Windows will contain. Minor: compare a normalised exception code rather than the raw `"0x80000003"` (a bare `80000003` passes the regex but misses the equality).
aznohonza commented 2026-12-01 06:36:01 +00:00

Addressed in 74e3be90c:

  • ordering: device lost is now after the time limit and the guest/loader exit events, so a loss line written during teardown no longer renames a clean exit or a time limit. Added tests for exit 0 + loss and timeout + loss;
  • breakpoint: it is matched from any exception code, normalised for 0x and case, so a later teardown 0xc0000005 does not hide it. Added a test with 0x80000003 followed by 0xc0000005 and one with a bare 80000003;
  • scope: the docstring now says the [rt] lines are the C++ gta6rt runtime's; the native Rust runtime's Leonida: host GPU failure: ... device removed lines are not read.

15 summary tests and the 9 run_game_wine.sh tests pass; check_no_game_data is clean. AI-assisted.

Addressed in 74e3be90c: - **ordering**: `device lost` is now after the time limit and the guest/loader exit events, so a loss line written during teardown no longer renames a clean exit or a time limit. Added tests for exit 0 + loss and `timeout` + loss; - **breakpoint**: it is matched from **any** exception code, normalised for `0x` and case, so a later teardown `0xc0000005` does not hide it. Added a test with `0x80000003` followed by `0xc0000005` and one with a bare `80000003`; - **scope**: the docstring now says the `[rt]` lines are the C++ `gta6rt` runtime's; the native Rust runtime's `Leonida: host GPU failure: ... device removed` lines are not read. 15 summary tests and the 9 `run_game_wine.sh` tests pass; `check_no_game_data` is clean. AI-assisted.
aznohonza commented 2026-12-01 06:37:09 +00:00

One more in 4edb90521: a startup-trace exit event with code 3 no longer hides the breakpoint (test added). A device loss still wins when both it and the breakpoint are present and there is no exit event, since the breakpoint is its handler.

One more in 4edb90521: a startup-trace exit event with code 3 no longer hides the breakpoint (test added). A device loss still wins when both it and the breakpoint are present and there is no exit event, since the breakpoint is its handler.
Neutron-0 commented 2026-12-01 07:12:14 +00:00

Verified on Windows, and the control bites: the new cases fail with main's copy of the tool.

main 640b0d0df, cherry-picked (one commit, 4edb90521), Python 3.13.5:

python -m pytest tests/test_game_run_summary.py -q
  with this pull request:                  15 passed, 22 subtests passed
  with tools/game_run_summary.py from main: 5 failed, 14 passed, 18 subtests passed

The five failures are the new cases only: test_device_lost_names_the_end_before_the_title_breakpoint, the two test_endings subtests that want title breakpoint (process exit 3), and the two subtests of test_title_breakpoint_survives_a_later_exception_and_accepts_a_bare_code (0x80000003 and 80000003). The twelve cases the file already had pass in both trees, so nothing else moved.

What the change is, from the diff: the END words gain device lost and title breakpoint - tools/game_run_summary.py reads vulkan: the device was lost off an [rt] line and an 0x80000003 exception off the startup trace, and the test file gains the cases that name both.

What I checked in the code besides running it (the tool reads the trace's codes as str(event.get("code", "")), so _same_code always gets a string, and EXCEPTION_CODE accepts a bare 80000003 as well as 0x80000003, which is what the new bare-code case is for):

  • the precedence the docstring claims: a time limit is read before the device-lost line, and a guest exit event is read before it too, so a loss written during teardown does not rename a clean end - each of those has a case;
  • the breakpoint case only applies when there is no device-lost line (not device_lost), so a loss and a breakpoint in the same run read device lost, which is what test_device_lost_names_the_end_before_the_title_breakpoint asserts.

What I could not test: a run folder from a real title - that needs the game. The tool never runs the files it reads, so the run folders the test writes are the whole of what I exercised.

AI-assisted: yes - DeepSeek v4.1 (flash), both arms on the machine above.

Written with an AI assistant.

**Verified on Windows, and the control bites: the new cases fail with `main`'s copy of the tool.** **`main` `640b0d0df`, cherry-picked (one commit, `4edb90521`), Python 3.13.5:** ``` python -m pytest tests/test_game_run_summary.py -q with this pull request: 15 passed, 22 subtests passed with tools/game_run_summary.py from main: 5 failed, 14 passed, 18 subtests passed ``` **The five failures are the new cases only**: `test_device_lost_names_the_end_before_the_title_breakpoint`, the two `test_endings` subtests that want `title breakpoint (process exit 3)`, and the two subtests of `test_title_breakpoint_survives_a_later_exception_and_accepts_a_bare_code` (`0x80000003` and `80000003`). **The twelve cases the file already had pass in both trees, so nothing else moved.** **What the change is, from the diff**: the `END` words gain `device lost` and `title breakpoint` - `tools/game_run_summary.py` reads `vulkan: the device was lost` off an `[rt]` line and an `0x80000003` exception off the startup trace, and the test file gains the cases that name both. **What I checked in the code besides running it** (the tool reads the trace's codes as `str(event.get("code", ""))`, so `_same_code` always gets a string, and `EXCEPTION_CODE` accepts a bare `80000003` as well as `0x80000003`, which is what the new bare-code case is for): - the precedence the docstring claims: a time limit is read before the device-lost line, and a guest exit event is read before it too, so a loss written during teardown does not rename a clean end - each of those has a case; - the breakpoint case only applies when there is **no** device-lost line (`not device_lost`), so a loss and a breakpoint in the same run read `device lost`, which is what `test_device_lost_names_the_end_before_the_title_breakpoint` asserts. **What I could not test**: **a run folder from a real title** - **that needs the game.** The tool never runs the files it reads, so the run folders the test writes are the whole of what I exercised. **AI-assisted:** yes - DeepSeek v4.1 (flash), both arms on the machine above. Written with an AI assistant.
aznohonza commented 2026-12-01 07:20:56 +00:00

Thank you — that is the same result as here: 15 summary tests pass on this head (the five new cases plus the ten that were already in the file), and the 9 run_game_wine.sh tests pass. A real title run is out of scope for the tool itself, and the run folders we checked it against are the two described in #2464.

AI-assisted.

Thank you — that is the same result as here: 15 summary tests pass on this head (the five new cases plus the ten that were already in the file), and the 9 `run_game_wine.sh` tests pass. A real title run is out of scope for the tool itself, and the run folders we checked it against are the two described in #2464. AI-assisted.
imShangLi commented 2026-12-01 10:01:33 +00:00

VERIFY-2844 — Linux, Python 3.15, no GPU device, no game files

Verdict: PASS — the tool names the two END words it says it names, and the new tests look at the code that decides them.

Head 4edb9052, base 640b0d0d (the merge-base with the current main), 2 files, +58/−2: tools/game_run_summary.py and tests/test_game_run_summary.py.

1. Its own suite, and the three rows

row tree tests/test_game_run_summary.py
A main 0259473b + this PR 15 tests, OK
B clean main + only this PR's test change (patched) 15 tests, FAILED (failures=5)

Row B's failures are assertions, not load errors:

FAIL: test_title_breakpoint_survives_a_later_exception_and_accepts_a_bare_code (code='80000003')
  self.assertEqual(summary.summarize(run)["end"], "title breakpoint (process exit 3)")
  AssertionError: 'process exit 3 (0x00000003), no exit event in the startup trace'
            != 'title breakpoint (process exit 3)'

The same difference for device lost, and for the bare exception code (80000003 without the 0x), which is the _same_code normalisation.

2. Discrimination: does the new test look at the changed code?

A test that passes with the fix and without it proves nothing, so I reverted tools/game_run_summary.py alone to main's copy on the green tree and ran the new tests:

tree result
PR head, tools/game_run_summary.py reverted to main's AssertionError (the new tests go red)

3. What the change does, read in the code

tools/game_run_summary.py picks one end string. The new branch order is:

  1. no exit code → device lost (no exit code recorded) if the runtime logged a device loss, otherwise the old text;
  2. a timeout code before the limit → time limit ... reached (unchanged, and still first);
  3. exit 3 with an 0x80000003 exception and no device loss → title breakpoint (process exit 3);
  4. a guest exit event → guest returned ... (unchanged);
  5. a loader error event → loader error event ... (unchanged);
  6. a device loss → device lost (process exit N);
  7. otherwise the old process exit N (0x...) text.

The two orderings the pull request's text calls out are in the code as described: the time limit is checked before the device loss, and the device loss wins over the breakpoint, because the breakpoint is the device loss's handler.

DEVICE_LOST = "vulkan: the device was lost" is matched with startswith on the [rt] line's text, and _same_code drops a leading 0x and compares case-insensitively, so 80000003, 0x80000003 and 0X80000003 are the same code.

4. What I did not check

  • The device lost line is the C++ gta6rt runtime's. The native Rust runtime's Leonida: host GPU failure: ... device removed line is not read — the tool's own text says so, and I did not measure that path.
  • I did not run a real run of the title, so the [rt] lines and the startup trace were synthetic folders, as the tests build them.
  • The exit-3-with-breakpoint case depends on the startup trace's exception list; I did not check what the real trace writes on a device-removed handler beyond what the tests construct.

AI-assisted: MiniMax M3.1 Flash.

## VERIFY-2844 — Linux, Python 3.15, no GPU device, no game files **Verdict: PASS** — the tool names the two `END` words it says it names, and the new tests look at the code that decides them. Head `4edb9052`, base `640b0d0d` (the merge-base with the current `main`), 2 files, +58/−2: `tools/game_run_summary.py` and `tests/test_game_run_summary.py`. ### 1. Its own suite, and the three rows | row | tree | `tests/test_game_run_summary.py` | |---|---|---| | A | `main` `0259473b` + this PR | **15 tests, OK** | | B | clean `main` + **only this PR's test change** (patched) | **15 tests, FAILED (failures=5)** | Row B's failures are assertions, not load errors: ``` FAIL: test_title_breakpoint_survives_a_later_exception_and_accepts_a_bare_code (code='80000003') self.assertEqual(summary.summarize(run)["end"], "title breakpoint (process exit 3)") AssertionError: 'process exit 3 (0x00000003), no exit event in the startup trace' != 'title breakpoint (process exit 3)' ``` The same difference for `device lost`, and for the bare exception code (`80000003` without the `0x`), which is the `_same_code` normalisation. ### 2. Discrimination: does the new test look at the changed code? A test that passes with the fix and without it proves nothing, so I reverted `tools/game_run_summary.py` alone to `main`'s copy on the green tree and ran the new tests: | tree | result | |---|---| | PR head, `tools/game_run_summary.py` reverted to `main`'s | **AssertionError** (the new tests go red) | ### 3. What the change does, read in the code `tools/game_run_summary.py` picks one `end` string. The new branch order is: 1. no exit code → `device lost (no exit code recorded)` if the runtime logged a device loss, otherwise the old text; 2. a timeout code before the limit → `time limit ... reached` (unchanged, and still first); 3. exit 3 with an `0x80000003` exception and no device loss → `title breakpoint (process exit 3)`; 4. a guest exit event → `guest returned ...` (unchanged); 5. a loader error event → `loader error event ...` (unchanged); 6. a device loss → `device lost (process exit N)`; 7. otherwise the old `process exit N (0x...)` text. The two orderings the pull request's text calls out are in the code as described: the time limit is checked before the device loss, and the device loss wins over the breakpoint, because the breakpoint is the device loss's handler. `DEVICE_LOST = "vulkan: the device was lost"` is matched with `startswith` on the `[rt]` line's text, and `_same_code` drops a leading `0x` and compares case-insensitively, so `80000003`, `0x80000003` and `0X80000003` are the same code. ### 4. What I did not check - The `device lost` line is the C++ `gta6rt` runtime's. The native Rust runtime's `Leonida: host GPU failure: ... device removed` line is not read — the tool's own text says so, and I did not measure that path. - I did not run a real run of the title, so the `[rt]` lines and the startup trace were synthetic folders, as the tests build them. - The exit-3-with-breakpoint case depends on the startup trace's exception list; I did not check what the real trace writes on a device-removed handler beyond what the tests construct. AI-assisted: MiniMax M3.1 Flash.
imShangLi commented 2026-12-01 10:42:58 +00:00

6. The whole standalone suite, against the same runner on a clean tree

I ran the repository's standalone test runner over main 0259473b + this pull request and over a clean main tree, and compared the lists:

tree run passed failed skipped
main + this PR 638 637 1 33
clean main 0259473b 638 637 1 33
$ diff <(sort passed-main) <(sort passed-with-2844)
(no difference)
$ diff <(sort skipped-main) <(sort skipped-with-2844)
(no difference)

The one failure is tests/test_run_semantic_tests.py on all three trees: two tests of the runner's SIGINT handling (communicate(timeout=5) times out on this machine, and one expects exit code 130 and gets 0). It is red on the clean tree as well, so it is not this change's.

AI-assisted: MiniMax M3.1 Flash.

### 6. The whole standalone suite, against the same runner on a clean tree I ran the repository's standalone test runner over `main` `0259473b` + this pull request and over a clean `main` tree, and compared the lists: | tree | run | passed | failed | skipped | |---|---|---|---|---| | `main` + this PR | 638 | 637 | 1 | 33 | | clean `main` `0259473b` | 638 | 637 | 1 | 33 | ``` $ diff <(sort passed-main) <(sort passed-with-2844) (no difference) $ diff <(sort skipped-main) <(sort skipped-with-2844) (no difference) ``` The one failure is `tests/test_run_semantic_tests.py` on all three trees: two tests of the runner's SIGINT handling (`communicate(timeout=5)` times out on this machine, and one expects exit code 130 and gets 0). It is red on the clean tree as well, so it is not this change's. AI-assisted: MiniMax M3.1 Flash.
imShangLi commented 2026-12-01 13:33:18 +00:00

A note on this machine's graphics, so "no GPU device" is not misread

I said above that this host has no GPU device. That is true of the Vulkan device, and I should be precise about which path I mean, because the two paths differ here and a reader could otherwise take my wording the wrong way.

What this machine is. A VMware Workstation guest (Fedora 45) on a host with a Radeon 780M. There is no PCI passthrough: the only display device inside the guest is the virtual VMware SVGA II (15ad:0405) driven by vmwgfx, and there is no AMD PCI ID anywhere in the guest.

There is no Vulkan hardware device here. mesa's svga driver has no Vulkan backend, so the loader enumerates nothing by default; with VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json it enumerates exactly one device, llvmpipe (LLVM 23.1.5, 256 bits) — a CPU software implementation. So no real GPU, no CUDA, no ROCm.

The OpenGL path is hardware-accelerated, though. The guest's SVGA3D calls are forwarded by the host-side VMware renderer to the host's Radeon 780M. The evidence I measured, comparing the default path with LIBGL_ALWAYS_SOFTWARE=1:

default:   OpenGL vendor string: VMware, Inc.   renderer: SVGA3D; build: RELEASE; LLVM;
software:  OpenGL vendor string: Mesa           renderer: llvmpipe (LLVM 23.1.5, 256 bits)

GL_VENDOR = "VMware, Inc." appears only when the commands leave the guest for the host's renderer; llvmpipe runs entirely on the guest's CPU. glxinfo -B also reports Video memory: 2048MB, direct rendering: Yes, OpenGL core profile 4.3 (Mesa 26.2.7), and vmwgfx's kernel capabilities include 3D; GNOME logs Created gbm renderer for '/dev/dri/card0' and the session is Wayland.

What follows for the verification above. Anything that needs a real GPU device or driver is invalid on this host, and none of my conclusions rest on one: the tests I ran are CPU-only, and the tool they measure is a Python script. Where a measured number came from this machine's GPU stack, it says so.

Two things I checked that a reader might otherwise assume. glxinfo's Accelerated: no is not evidence that 3D acceleration is off — that field comes from mesa's GLX_MESA_query_renderer, which cannot see an acceleration that happens on the host side. And OpenGL throughput on this host does not stand for real hardware: in my own measurements the software path was faster than SVGA3D for small, tightly-synchronised batches (713 vs 1061 draws/s in an off-screen rasterisation loop; 88 vs 308-692 FPS in glxgears), because SVGA3D pays a synchronisation round trip across the virtualisation boundary while llvmpipe rasterises locally. That says nothing about which path a real application would take — the vendor string settles that — and it is a reminder that a frame-rate number from here is not a hardware result.

AI-assisted: MiniMax M3.1 Flash.

### A note on this machine's graphics, so "no GPU device" is not misread I said above that this host has no GPU device. That is true of the **Vulkan** device, and I should be precise about which path I mean, because the two paths differ here and a reader could otherwise take my wording the wrong way. **What this machine is.** A VMware Workstation guest (Fedora 45) on a host with a Radeon 780M. There is **no PCI passthrough**: the only display device inside the guest is the virtual `VMware SVGA II (15ad:0405)` driven by `vmwgfx`, and there is no AMD PCI ID anywhere in the guest. **There is no Vulkan hardware device here.** mesa's svga driver has no Vulkan backend, so the loader enumerates nothing by default; with `VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json` it enumerates exactly one device, `llvmpipe (LLVM 23.1.5, 256 bits)` — a **CPU software implementation**. So no real GPU, no CUDA, no ROCm. **The OpenGL path is hardware-accelerated, though.** The guest's SVGA3D calls are forwarded by the host-side VMware renderer to the host's Radeon 780M. The evidence I measured, comparing the default path with `LIBGL_ALWAYS_SOFTWARE=1`: ``` default: OpenGL vendor string: VMware, Inc. renderer: SVGA3D; build: RELEASE; LLVM; software: OpenGL vendor string: Mesa renderer: llvmpipe (LLVM 23.1.5, 256 bits) ``` `GL_VENDOR = "VMware, Inc."` appears only when the commands leave the guest for the host's renderer; llvmpipe runs entirely on the guest's CPU. `glxinfo -B` also reports `Video memory: 2048MB`, `direct rendering: Yes`, OpenGL core profile 4.3 (Mesa 26.2.7), and `vmwgfx`'s kernel capabilities include `3D`; GNOME logs `Created gbm renderer for '/dev/dri/card0'` and the session is Wayland. **What follows for the verification above.** Anything that needs a real GPU **device** or **driver** is invalid on this host, and none of my conclusions rest on one: the tests I ran are CPU-only, and the tool they measure is a Python script. Where a measured number came from this machine's GPU stack, it says so. Two things I checked that a reader might otherwise assume. `glxinfo`'s **`Accelerated: no`** is not evidence that 3D acceleration is off — that field comes from mesa's `GLX_MESA_query_renderer`, which cannot see an acceleration that happens on the host side. And **OpenGL throughput on this host does not stand for real hardware**: in my own measurements the software path was *faster* than SVGA3D for small, tightly-synchronised batches (713 vs 1061 draws/s in an off-screen rasterisation loop; 88 vs 308-692 FPS in `glxgears`), because SVGA3D pays a synchronisation round trip across the virtualisation boundary while llvmpipe rasterises locally. That says nothing about which path a real application would take — the vendor string settles that — and it is a reminder that a frame-rate number from here is not a hardware result. AI-assisted: MiniMax M3.1 Flash.
imShangLi commented 2026-12-01 13:46:28 +00:00

Correction to my note above: the frame-rate comparison was not controlled

My note above said that on this host the software path measured faster than SVGA3D (713 vs 1061 draws/s in an off-screen rasterisation loop; 88 vs 308-692 FPS in glxgears), and put that down to SVGA3D paying a synchronisation round trip across the virtualisation boundary. That comparison was uncontrolled and the conclusion from it was wrong. I used the default window size and the default swap interval, and the ranking flips with those.

With the window size and the swap interval fixed, glxgears on this host gives:

window swap interval SVGA3D llvmpipe the faster one
300x300 0 (vsync off) 1349 FPS 342 FPS SVGA3D, 3.9x
1024x768 0 (vsync off) 638 FPS 152 FPS SVGA3D, 4.2x
300x300 1 (vsync on) 55 FPS 546 FPS llvmpipe

The two figures I quoted before were the default window with the default swap interval, which is the one combination that happens to favour the software path. So:

  • A frame rate from this host is not a hardware result — that part of my note stands, and this table is the better illustration of why. The same two binaries swap places depending on two settings.
  • Which path is in use is settled by GL_VENDOR / GL_RENDERER (VMware, Inc. / SVGA3D versus Mesa / llvmpipe), never by the frame rate.
  • SVGA3D's cost is a synchronisation round trip per flush, so it is not necessarily ahead of a local software rasteriser on small, tightly-synchronised batches; its advantage shows on larger, GPU-bound batches, which is what the two vsync-off rows above are.

One difference worth recording so the numbers are not read as a reproduction: in the vsync-on row my llvmpipe run reached 546 FPS where the other run on this host reached 89 FPS for the same setting. This is a Wayland session and the swap interval is not honoured identically on the two paths, so the vsync-on row is not a like-for-like comparison between them; the two vsync-off rows are.

AI-assisted: MiniMax M3.1 Flash.

### Correction to my note above: the frame-rate comparison was not controlled My note above said that on this host the software path measured *faster* than SVGA3D (713 vs 1061 draws/s in an off-screen rasterisation loop; 88 vs 308-692 FPS in `glxgears`), and put that down to SVGA3D paying a synchronisation round trip across the virtualisation boundary. **That comparison was uncontrolled and the conclusion from it was wrong.** I used the default window size and the default swap interval, and the ranking flips with those. With the window size and the swap interval fixed, `glxgears` on this host gives: | window | swap interval | SVGA3D | llvmpipe | the faster one | |---|---|---|---|---| | 300x300 | 0 (vsync off) | **1349 FPS** | 342 FPS | SVGA3D, 3.9x | | 1024x768 | 0 (vsync off) | **638 FPS** | 152 FPS | SVGA3D, 4.2x | | 300x300 | 1 (vsync on) | 55 FPS | **546 FPS** | llvmpipe | The two figures I quoted before were the default window with the default swap interval, which is the one combination that happens to favour the software path. So: - **A frame rate from this host is not a hardware result** — that part of my note stands, and this table is the better illustration of why. The same two binaries swap places depending on two settings. - **Which path is in use is settled by `GL_VENDOR` / `GL_RENDERER`** (`VMware, Inc.` / `SVGA3D` versus `Mesa` / `llvmpipe`), never by the frame rate. - SVGA3D's cost is a synchronisation round trip per flush, so it is not necessarily ahead of a local software rasteriser on small, tightly-synchronised batches; its advantage shows on larger, GPU-bound batches, which is what the two vsync-off rows above are. One difference worth recording so the numbers are not read as a reproduction: in the vsync-on row my llvmpipe run reached 546 FPS where the other run on this host reached 89 FPS for the same setting. This is a Wayland session and the swap interval is not honoured identically on the two paths, so the vsync-on row is not a like-for-like comparison between them; the two vsync-off rows are. AI-assisted: MiniMax M3.1 Flash.
aznohonza commented 2026-12-01 21:46:03 +00:00

Thanks for the PASS and for separating the two "no device" meanings — the startup-trace and [rt] lines being synthetic folders matches what the tests build, and the Rust runtime's host GPU failure text is deliberately not matched. No change on my side.

AI-assisted.

Thanks for the PASS and for separating the two "no device" meanings — the startup-trace and `[rt]` lines being synthetic folders matches what the tests build, and the Rust runtime's `host GPU failure` text is deliberately not matched. No change on my side. AI-assisted.
Sign in to join this conversation.
No description provided.