Skip to content

Capture screenshots from a packaged Unreal Linux game with Vulkan SM6 offscreen

Section titled “Capture screenshots from a packaged Unreal Linux game with Vulkan SM6 offscreen”
  • Status: Current on the tested host.
  • Engine: ue6-main 61e2877e1, Linux x86_64, Epic clang 23.1.5.
  • Context: Standalone UE6 Linux Development package. The Coop Zero map contains a native day/night actor and a BPVerse interactable.
  • Prerequisites: A Linux Vulkan SM6 package with a game viewport and a writable screenshot directory. The tested renderer uses Lumen GI and reflections, mesh distance fields and virtual shadow maps. The tested host runs a Hyprland Wayland session with NVIDIA driver 615.78.08.

A -nullrhi launch can exercise actor and Verse logic. It skips the rendering needed for screenshot evidence. A rendered run can use the Vulkan RHI while leaving the desktop available.

With $P and $WRAP set as in the README:

Terminal window
mkdir -p "$P/Saved/Screenshots"
"$WRAP" offscreen-smoke timeout -k 10s 120s "$P/Out/Linux/CoopZero.sh" \
-RenderOffscreen -ResX=1280 -ResY=720 -nosound -unattended -stdout \
"-ExecCmds=coop.timescale 0,delay 5 coop.timescale 60,delay 15 shot filename=$P/Saved/Screenshots/smoke.png -nosuffix,delay 37 quit" \
-abslog="$P/Saved/offscreen-smoke.log"
test -s "$P/Saved/Screenshots/smoke.png"

Use a Development build with a bounded offscreen run and Unreal’s deferred console commands. Put an absolute path in shot filename= to direct the engine to the project checkout’s Saved/Screenshots. Use -nosuffix to predict the filename. Schedule quit a few ticks or seconds after the shot to leave time for readback and write.

-RenderOffscreen let the game initialize a Vulkan SM6 render target in the tested Linux session. The game viewport’s shot command requests a readback using the specified name. The explicit pathname avoids depending on which Saved tree a staged executable uses. Unreal schedules delay via its core ticker. A launch-time delay 10 fired 7.268 s after the immediate timescale command on the first cold run. Scheduling both the start of acceleration and the capture on the ticker made the interval reproducible. To verify the simulation state when each request fires, schedule a state read immediately before the screenshot in the same run. Coop Zero used getall CoopDayNight ElapsedSeconds.

  • Evidence level: Runs in packaged build.
  • How: Coop Zero Step 04 ran the command pattern above with a state read and a second shot at 30 s, then quit. The log printed rhifeaturelevel="SM6", DeviceName: NVIDIA RTX PRO 6000 Blackwell Workstation Edition, ElapsedSeconds = 600.153087 and ElapsedSeconds = 1500.022800. The command exited 0. Both named files were non-empty. The detailed commands and proof lines are in Coop Zero REPORT.md.
    • Host timing: One sample logged DAY_NIGHT_FRAMES avg_ms=3.12 frames=1604 wall_s=5.003 scale=60 on the NVIDIA RTX PRO 6000 Blackwell Workstation Edition and AMD Ryzen 9 9950X3D. This establishes that the packaged smoke run completed on that host.
    • Cold start (editor commandlet): The editor commandlet also used -AllowCommandletRendering -RenderOffscreen and eight shader workers. Global and default material shader creation stretched its first launch to roughly 11m 20s, before the placement script completed in 0.34 s.
  • Date / by: 2026-11-25, Coop Zero Step 04.

The command uses the Development console and the installed Vulkan stack. The evidence covers the tested package and GPU. It covers file creation and timing. Image appearance, performance comparisons and physical controller input are outside this proof.