Skip to content

Point tools/debug/render_smoke.py at openPR06 - #80

Merged
themuffinator merged 1 commit into
themuffinator:mainfrom
danperisse-hue:port-render-smoke
Nov 27, 2026
Merged

themuffinator merged 1 commit into
themuffinator:mainfrom
danperisse-hue:port-render-smoke

Conversation

@danperisse-hue

Copy link
Copy Markdown
Contributor

tools/debug/render_smoke.py was still the openQ4 version:

It now:

  • starts openPR06-client_<arch> with fs_game basepr on game/roadhouse (SP) or game/dmroadhouse (MP, deathmatch);
  • sets com_autoScreenshot 0 instead;
  • follows the map command with waitMsec (the --delay-ms value) and exec_savepath, as renderer_gameplay_benchmark.py does.

The config, log and default output directory lose their Android/openQ4 names, and the completion marker is OPENPR06_SMOKE_DONE. I kept the --render-api default at gles, for GLES builds.

Tested

  • WSL (headless Weston, d3d12) and Windows 11, both on a build of main at 5bf527e: --render-api gl --mode sp, gl --mode mp and vk --mode sp complete, keep the requested API and write a varying screenshot.
  • GLES on a desktop build: a gles run falls back to GL, because desktop builds have no renderer-gles module unless build_renderer_gles is enabled. The smoke reports that run as incomplete, which is correct.

The renderer smoke still launched openQ4-client_<arch> with fs_game baseoq4,
loaded Quake 4 maps (game/hangar1, mp/q4dm1) with si_gameType DM, set the
openQ4-only cvars com_skipIntroVideos and g_autoScreenshot, and ran its
config through g_autoExecAfterMapLoad, an openQ4 game-library cvar that
PREY's game library does not have (themuffinator#75).

It now starts openPR06-client_<arch> with fs_game basepr on game/roadhouse
(SP) or game/dmroadhouse (MP, deathmatch), sets com_autoScreenshot 0
instead, and follows the map command with waitMsec (the --delay-ms value)
and exec_savepath, as renderer_gameplay_benchmark.py does. The config, log
and default output directory lose their Android/openQ4 names, and the
completion marker is OPENPR06_SMOKE_DONE. The --render-api default stays
gles for GLES builds.

On WSL (headless Weston, d3d12) and on Windows 11, the gl/sp, gl/mp and
vk/sp runs complete, keep the requested API and write a varying
screenshot. A gles run on a desktop build falls back to GL, because there
is no renderer-gles module unless build_renderer_gles is enabled, and the
smoke reports that as incomplete, as it should.
@themuffinator
themuffinator merged commit 0bb5fdc into themuffinator:main Nov 27, 2026
9 checks passed
themuffinator added a commit that referenced this pull request Nov 29, 2026
…round, and stop rewriting the config at launch

Ported from openPR06, the PREY port built on openQ4 (third round: pull
requests #53-#81 and issues #61-#78 by danperisse-hue).

- A deflated PK4 member keeps what it inflates once it is seeked (up to
  32 MiB), so a wave or model chunk scan no longer inflates the member again
  at every seek, and a seek to the current position does nothing (#53).
- Generated animation caches are built in memory and written, synced and
  closed by a writer thread, at most 16 files and 64 MiB queued; the main
  thread promotes them, and game shutdown waits for the queue (#54, as
  adapted to openQ4's version-3 cache in openPR06 a945a6b).
- idInternalCVar::Update flags CVAR_ARCHIVE only when the declaration makes
  a cvar archived, so a module registering archived cvars the config already
  set no longer rewrites openQ4Config.cfg on every launch (#63).
- idProgram::FindFreeResultDef finds a reusable <RESULT> temporary through a
  per-scope hash chain, newest first like the def list, instead of walking
  every result compiled so far (#64).
- Linux: the loose-directory memo runs on case-sensitive filesystems too,
  resolving case once per directory (#56); glibc malloc arenas are capped at
  two unless MALLOC_ARENA_MAX is set (#71); the fatal-breadcrumb directory is
  created like mkdir -p (#57).
- com_timestampPrints describes 1 as seconds and 2 as milliseconds (#60).
- Tests: filesystem_length_probe_contract follows the memo (#65),
  posix_memory_management checks the arena cap, and android_savepath
  extracts Posix_MkdirParents (openPR06 bd071e1).
- BUILDING.md: running the Linux stock smokes under a headless Weston (#81).

Prey-only or already in openQ4, and not ported: #48, #55, #59, #66-#68,
#70, #73, #74, #76, #77, #79, #80.

Co-authored-by: danperisse-hue <danperisse@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants