Repository navigation
Runtime diagnostics: launch_trace / launch_trace_max runtime options - #156
Merged
Merged
Conversation
WG_LAUNCH_TRACE=<file> (one line per kernel launch) is read from the environment, which a game started by its store launcher does not inherit from us. The interop's runtime options launch_trace=<file> and launch_trace_max=<lines> set WG_LAUNCH_TRACE and the new WG_LAUNCH_TRACE_MAX (stop after that many lines) inside the game process. Nothing changes without them. Refs #89 Signed-off-by: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com>
phantoslayer21
marked this pull request as ready for review
November 14, 2026 08:13
Signed-off-by: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com>
This was referenced Nov 14, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #89
WG_LAUNCH_TRACE=<file>(one line per kernel launch,clean/runtime/device.cpptrace_launch) is read from theenvironment, which a game started by Steam or its own launcher does not inherit from us. Two runtime options set it
inside the game process:
launch_trace=<file>: setsWG_LAUNCH_TRACE(interop option parser, Windows);launch_trace_max=<lines>: sets the newWG_LAUNCH_TRACE_MAX, which stops the trace after that many lines (agame at 60 fps writes about 20 lines per frame).
Nothing changes without them.
Tested: used in the first Model L game runs (Cyberpunk 2077, Resident Evil Requiem) through
runtime_options=...;launch_trace=<file>;launch_trace_max=200000: the trace listed every Model L kernel once perframe and stopped at 200,000 lines. No unit test (the trace is a diagnostics file the runtime writes; the option
parsing is three lines).