One developer console (FiveM F8 style) for the tools now spread over F1/F2/F3, F7-F9 and the console window #4613

Open
opened 2026-12-01 00:04:32 +00:00 by github-bot · 3 comments
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 23:49 UTC · original

What you would like

One in-game developer console, like FiveM's F8 console, that gathers what is now split across the separate console window, the F1 menu, F2, F3 and the single-purpose F-keys. F1/F2/F3 would stay as optional shortcuts, and the keys could be rebound later.

Why

Today, from main (e1251c31):

  • Tools are spread over keys and windows. F1 is the settings menu (host/menu.rs, ~3,260 lines). F2 toggles the explainer and F3 the stats panel (host/panel.rs). F7/F8 flush texture copies (FLUSH_HARD/FLUSH_SOFT). F9 is frame capture (capture.rs). The log goes to a separate console window and to the play log.
  • Some keys already do two or three things at once. F8 is the soft texture flush (panel.rs) and also toggles the vehicle camera auto-center hook (lifecycle.rs, the mousehook line in every log). F9 is frame capture, the native mouse toggle (gameinput.rs) and a capture override (lifecycle.rs). The [/] keys set the mouse sensitivity. Nothing lists these in one place.
  • No central list of switches. There are about 480 VICTORY_* switches. Only F1's curated ITEMS and docs/dlss.md describe any of them, so users trade --set lines in issues by hand.
  • Settings are read once. Almost everything needs a restart (5 menu items are live: true). A console could say so for each switch instead of users finding out.

Proposal: in small steps, each useful on its own

  1. A switch registry: name, default, one-line description, live or next start. It could be generated from the source (toggled!/asked_for! sites and their doc comments) at build time. On its own it already helps the docs and F1, and it can check for typos in --set.
  2. The console view (drawn as the panel and menu are, with the same font and box). It holds a scrollback of the tracing lines (a ring buffer layer, filterable: filter WARN, filter dlss) and the commands find <text>, get <SWITCH> and help. While it is open the title gets no keyboard, as F1 does (SETTINGS_MENU_OPEN).
  3. Commands for what exists: set <SWITCH> <value> (saved to victory-settings.txt, with "next start" or "now" said), preload, clear-shaders, restart, stats (F3's numbers), memory, pipelines (failed and pending, with their hashes), flush soft|hard, capture, cam-center.
  4. Live switches, one at a time, where the code can take them, for example with the VICTORY_AB mechanism the diagnostics builds already have.
  5. Key bindings: the console key and the F-key shortcuts in bindings.ini (which already holds the mouse-and-keyboard bindings), so F7/F8/F9 stop doing several things at once.

Points to settle

  • Which key. F8 is taken twice already. A key matched by scan code (0x29, the key left of 1: ` on US layouts, º on Spanish ones) works on any layout and is what many games use. Moving F8's current uses into the console would free it.
  • Cost. The console should cost nothing while closed, and the panel's approach (made twice a second, copied out of a buffer) keeps it off the hot path while open.
  • Frame generation. Like F1 today, UI drawn on the picture before DLSS/FSR 3 frame generation is interpolated. A console left open makes that more visible, and tagging it as UI is worth a look.
  • The separate console window could stay for start-up messages, or show only until the game window is up.

Are you working on a fix?

I'd like to, with some pointers. Step 1 (the switch registry) is self-contained, and I can open it as a first PR if the direction is welcome.

AI-assisted with Claude Code.

**@⁠tyr0nsur** on GitHub · 2026-11-30 23:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4612) ### What you would like **One in-game developer console, like FiveM's F8 console**, that gathers what is now split across the separate console window, the F1 menu, F2, F3 and the single-purpose F-keys. F1/F2/F3 would stay as optional shortcuts, and the keys could be rebound later. #### Why Today, from `main` (e1251c31): - **Tools are spread over keys and windows.** F1 is the settings menu (`host/menu.rs`, ~3,260 lines). F2 toggles the explainer and F3 the stats panel (`host/panel.rs`). F7/F8 flush texture copies (`FLUSH_HARD`/`FLUSH_SOFT`). F9 is frame capture (`capture.rs`). The log goes to a separate console window and to the play log. - **Some keys already do two or three things at once.** F8 is the soft texture flush (`panel.rs`) and also toggles the vehicle camera auto-center hook (`lifecycle.rs`, the `mousehook` line in every log). F9 is frame capture, the native mouse toggle (`gameinput.rs`) and a capture override (`lifecycle.rs`). The `[`/`]` keys set the mouse sensitivity. Nothing lists these in one place. - **No central list of switches.** There are about 480 `VICTORY_*` switches. Only F1's curated `ITEMS` and `docs/dlss.md` describe any of them, so users trade `--set` lines in issues by hand. - **Settings are read once.** Almost everything needs a restart (5 menu items are `live: true`). A console could say so for each switch instead of users finding out. #### Proposal: in small steps, each useful on its own 1. **A switch registry**: name, default, one-line description, live or next start. It could be generated from the source (`toggled!`/`asked_for!` sites and their doc comments) at build time. On its own it already helps the docs and F1, and it can check for typos in `--set`. 2. **The console view** (drawn as the panel and menu are, with the same font and box). It holds a scrollback of the `tracing` lines (a ring buffer layer, filterable: `filter WARN`, `filter dlss`) and the commands `find <text>`, `get <SWITCH>` and `help`. While it is open the title gets no keyboard, as F1 does (`SETTINGS_MENU_OPEN`). 3. **Commands for what exists**: `set <SWITCH> <value>` (saved to `victory-settings.txt`, with "next start" or "now" said), `preload`, `clear-shaders`, `restart`, `stats` (F3's numbers), `memory`, `pipelines` (failed and pending, with their hashes), `flush soft|hard`, `capture`, `cam-center`. 4. **Live switches, one at a time**, where the code can take them, for example with the `VICTORY_AB` mechanism the diagnostics builds already have. 5. **Key bindings**: the console key and the F-key shortcuts in `bindings.ini` (which already holds the mouse-and-keyboard bindings), so F7/F8/F9 stop doing several things at once. #### Points to settle - **Which key.** F8 is taken twice already. A key matched by scan code (`0x29`, the key left of 1: `` ` `` on US layouts, `º` on Spanish ones) works on any layout and is what many games use. Moving F8's current uses into the console would free it. - **Cost.** The console should cost nothing while closed, and the panel's approach (made twice a second, copied out of a buffer) keeps it off the hot path while open. - **Frame generation.** Like F1 today, UI drawn on the picture before DLSS/FSR 3 frame generation is interpolated. A console left open makes that more visible, and tagging it as UI is worth a look. - **The separate console window** could stay for start-up messages, or show only until the game window is up. ### Are you working on a fix? I'd like to, with some pointers. Step 1 (the switch registry) is self-contained, and I can open it as a first PR if the direction is welcome. AI-assisted with Claude Code.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:04:32 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 23:50 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU you have and which Windows version (10 or 11).

If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.

**@⁠github-actions[bot]** on GitHub · 2026-11-30 23:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4612#issuecomment-7295577359) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU you have and which Windows version (10 or 11). **If this issue needs logs and none are posted here within 12 hours, it will be closed.** Add them by editing your post or in a comment.
Author
Owner

@⁠M4gnif1cus on GitHub · 2026-12-01 00:13 UTC · original

For the stats part of this: #4542 adds a second F3 panel that could be what that command shows, and it was built with the same constraint in mind (nothing on the hot path).

  • It shows the frame rate and lows, the card, processor and memory, latency, what limits the frame, the last 30 s of frame times, and the session's P95/P99, pacing, severe stutters and longest pause.
  • It is painted on its own thread twice a second; the frame thread only records a copy, about 12–14 µs a frame. Nothing is drawn or measured while it is hidden.
  • victory_gpu::in_play() says whether the player is in play, paused or in a menu, from the title's own flags. A console could use it too, for example to keep counting out of its own open time.

If the console lands, the panel's numbers could be exposed as text for stats rather than duplicated. Happy to adapt it to whatever shape the console takes.

F3 second panel

The second F3 panel from #4542.

**@⁠M4gnif1cus** on GitHub · 2026-12-01 00:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4612#issuecomment-7296086347) For the `stats` part of this: #4542 adds a second F3 panel that could be what that command shows, and it was built with the same constraint in mind (nothing on the hot path). - It shows the frame rate and lows, the card, processor and memory, latency, what limits the frame, the last 30 s of frame times, and the session's P95/P99, pacing, severe stutters and longest pause. - It is painted on its own thread twice a second; the frame thread only records a copy, about 12–14 µs a frame. Nothing is drawn or measured while it is hidden. - `victory_gpu::in_play()` says whether the player is in play, paused or in a menu, from the title's own flags. A console could use it too, for example to keep counting out of its own open time. If the console lands, the panel's numbers could be exposed as text for `stats` rather than duplicated. Happy to adapt it to whatever shape the console takes. <img src="https://raw.githubusercontent.com/M4gnif1cus/VIctory-NVIDIA/panel-f3-captura/panel-f3.png" width="480" alt="F3 second panel"> <sub>The second F3 panel from #4542.</sub>
Author
Owner

@⁠tyr0nsur on GitHub · 2026-12-01 00:18 UTC · original

@⁠M4gnif1cus thanks, that fits well. #4542's second panel is exactly what stats should show. The console only needs to open the same panel, or print its last snapshot as text, rather than keep counters of its own. Your "only play counts" rule (from the title's pause, menu and map flags) is what the console's capture and pacing commands want too. And since #4542 already puts the F3 cycling into lifecycle.rs/mousehook.rs, the key-binding step (5) can start from where those keys are read there.

Step 1 is up as #4627: a table of the 928 switches the code reads, built from the sources at compile time, with victory switches [text]. play now names the switches it sets that no code reads. Once both are in, step 2 (the console view: log scrollback, find/get) would draw with the same font and box as #4542's panel.

AI-assisted with Claude Code.

**@⁠tyr0nsur** on GitHub · 2026-12-01 00:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4612#issuecomment-7296176744) @⁠M4gnif1cus thanks, that fits well. #4542's second panel is exactly what `stats` should show. The console only needs to open the same panel, or print its last snapshot as text, rather than keep counters of its own. Your "only play counts" rule (from the title's pause, menu and map flags) is what the console's capture and pacing commands want too. And since #4542 already puts the F3 cycling into `lifecycle.rs`/`mousehook.rs`, the key-binding step (5) can start from where those keys are read there. Step 1 is up as #4627: a table of the 928 switches the code reads, built from the sources at compile time, with `victory switches [text]`. `play` now names the switches it sets that no code reads. Once both are in, step 2 (the console view: log scrollback, `find`/`get`) would draw with the same font and box as #4542's panel. AI-assisted with Claude Code.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4613
No description provided.