UI: Vice City UI v3 — Categorized F1 Menu, Live Scale & Corner, Compact F3 + 1% Low, etc #4712
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4712
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4711"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ArnoX5 on GitHub · 2026-12-01 03:02 UTC · original
ArnoX5:ui/vice-city-categories→main· +547 −82 · 3 files · 5 commits · openSummary
Follow-up polish to #4635 implementing community feedback from Discussion #4661 plus live overlay customization, a Compact F3 HUD with
1% LOWFPS, conflict warnings, and one-click bug-report specs—with zero new dependencies and zeroCargo.tomlchanges.Huge thanks to @freyandere for suggesting the categorized F1 layout and top console/build header on the F3 panel!
F1 Settings Menu (
menu.rs)DISPLAY,DLSS & FRAME GENERATION,FRAME RATE & STATS,CONTROLS,LIGHTING & IMAGE,ADVANCED GRAPHICS,PERFORMANCE & COMPATIBILITY,MODS / EXPERIMENTAL,ACTIONS). Arrow keys, hold-to-scroll, scroll wheel, and gamepad skip headers automatically.PageUp/PageDownSection Jump: Snap straight between categories (with key repeat when held), shown right in the header help bar.UI SCALE(VICTORY_UI_PCT): Resize the entire overlay live (AUTO,80%–200%) without editing scripts—automatically capped to screen height so it never clips on 1080p displays.OVERLAY CORNER(VICTORY_OVERLAY_CORNER): Move the F3 panel and FPS pill live to Top-Left, Top-Right, Bottom-Left, or Bottom-Right so they stay clear of GTA 6’s top-left tutorial/Focus popups.N NEED(S) RESTARTcounter in the header whenever non-live settings differ from launch (clears automatically if reverted).!tag and explains the fix in the footer (RAY TRACING+HARDWARE RT,FRAME GENwith bothTHIN LISTSandASYNC SUBMIToff, orFORCE 3X/MFG UNLOCKERwithoutDLSSFG).COPY SPECS & SETTINGS (FOR BUG REPORTS)(ACTIONS): Copies a formatted Markdown summary (Build, GPU—even when set toAUTO, Console/Res, DLSS/Preset, FG/Type, RT, and modified switches) straight to the Windows clipboard forCtrl + Vinto GitHub Issues.menu_layout()): Computes width and column alignment once at startup from the longest label/value (including GPU names), keeping the676floor while safely widening for longer entries in future updates.F3 Stats Panel (
panel.rs)SERIES X / BUILDHeader (suggested by @freyandere): Displays active console profile (SERIES X/SERIES S) and live build version (BUILD V...) right above a divider for instant clarity in screenshots and bug reports.F3Cycle (OFF→COMPACT→FULL):SERIES X/S · BUILD,FPS,1% LOW,FRAME,FG,DLSS,VRAM,RAM,CPU+ live FPS sparkline).FPS,CPU,RAM,VRAM).STATS PANEL (F3)setting; existingVICTORY_PANEL=1configs map directly toFULL.1% LOWFPS: Shown underFPSin both Compact and Full modes with amber/coral pacing alerts.182base width that auto-sizes both dimensions to fit future rows/labels without clipping, plus a raw-FPS sparkline that auto-scales cleanly to any frame rate (10-FPS steps, 30-FPS floor) with the live ceiling printed on the bar.Implementation & Maintainer Notes
panel::mode()(0/1/2) andpanel::corner_pos()(0–3) useAtomicU8, shared cleanly betweenpanel.rsandmenu.rs’s FPS pill.Buffersviadraw_w/draw_hclipping, with a50msminimum window guard on mode-flip redraws to prevent artificial FPS spikes.f64::total_cmp, 99th-percentile worst frametime), cleared automatically when the panel is turned off.copy_to_clipboard()usinguser32/kernel32unsafe extern "system"bindings (matchingfont.rs’sgdi32pattern), UTF-16LE (CF_UNICODETEXT), withGlobalFreecleanup on error.too_many_arguments,manual_div_ceil,manual_is_multiple_of,collapsible_if) acrossfont.rs,menu.rs, andpanel.rs.Screenshots
Note for Maintainers (Per-Row Default Values)
Per-item default indicators were intentionally left out of this PR because
menu.rsonly sees the merged environment aftervictory-settings.txtis applied, while actual play defaults live inplay.rs/play-nvidia.ps1. Usingitem.values().first()matches most items cleanly, but differs from launcher defaults on a few switches (e.g.,VICTORY_AMBIENT_AIR,VICTORY_CARD_BUFFERS_MIN_KB, and launcher-passedDLSS/FRAMEGEN). Ifplay.rs/play-nvidia.ps1exposes the baseline play defaults (e.g., via an env var or shared defaults table) in a future update,menu.rs—including @freyandere’s upcomingDEFAULTcolumn follow-up—can display 100% accurate per-row defaults without drifting out of sync.Verification
cargo clippy --workspace --all-targets --locked -- -D warnings— 0 warnings, 0 errorscargo clippy --workspace --all-targets --locked --features diagnostics -- -D warnings— 0 warnings, 0 errorscargo test -p victory-gpu --locked— 1,096 passed, 0 failedcargo build --release— verified in-game on Windows 11 (RTX 4070 Ti SUPER,console=series-x,build=release)(Note: "Allow edits by maintainers" is enabled—feel free to tweak or build on this directly.)
@techdev211 on GitHub · 2026-12-01 03:09 UTC · original
Awsome! great work so far, cant wait to test it out.
@freyandere on GitHub · 2026-12-01 03:21 UTC · original
#4711
Please check it out seems like we are on the same path.
Thank you so much for mentioning me, while testing of the build, missed your message that you are working on it.
@ArnoX5 on GitHub · 2026-12-01 03:38 UTC · original
@freyandere Yeah, I checked out yours and changed the placement of my build number to how you did it, (if that's okay?). Yours looked much better and made more sense. I have also added a bunch of other features to this alongside what you had suggested. So, I think I should keep this up even though your exists already, no?
@ArnoX5 on GitHub · 2026-12-01 03:39 UTC · original · edited 2026-12-01 03:51 UTC
@techdev211 I'm preparing a huge v3 update to this. Pls wait for that. Don't merge this yet.
@freyandere on GitHub · 2026-12-01 03:56 UTC · original
Yes, keep yours up. It covers more than mine, and two competing category systems won't merge cleanly (both rewrite menu.rs/panel.rs). Once #4712 is merged, I'll rebase the parts yours doesn't have onto it as a smaller follow-up: collapsible sections that remember their state between runs (Space / gamepad X, Advanced Performance collapsed by default), and the Default column next to the current value. I'll close #4721, which duplicates #4711, and put #4711 into draft until then.
UPDATE --> Vice City UI v2 — Categorized F1 Menu, Scrollbar & Auto-Sized Panelsto UI: Vice City UI v3 — Categorized F1 Menu, Live Scale/Corner, Compact F3 + 1% Low, Conflict Alerts & Clipboard Specs, etcUI: Vice City UI v3 — Categorized F1 Menu, Live Scale/Corner, Compact F3 + 1% Low, Conflict Alerts & Clipboard Specs, etcto UI: Vice City UI v3 — Categorized F1 Menu, Live Scale & Corner, Compact F3 + 1% Low, etc@TayHD on GitHub · 2026-12-01 04:26 UTC · original
Im also looking at implementing NativeUI menus which this can greatly benefit from.
@freyandere on GitHub · 2026-12-01 04:45 UTC · original
As far as I understand, it's more of a mod rather than performance or settings related.
@ArnoX5 on GitHub · 2026-12-01 05:07 UTC · original
@trustno1-coder The Final version (as of now) has been uploaded. Now, you can test and merge it anytime. Thank you.
@ArnoX5 on GitHub · 2026-12-01 05:09 UTC · original
@freyandere Read the last part of the description bro, regarding the Default values of every row.
@freyandere on GitHub · 2026-12-01 05:12 UTC · original · edited 2026-12-01 05:49 UTC
Give me a second, I'll check it.
Edit:
@ArnoX5
Checked those out, implementing the default section and adding Grouping to some of those menu entries for the logical order and visual Highlighting.
Outstanding job on the resizing and placement selectors.
One visual detail that I noticed is that numbers in those graphs are overlapped with the graph itself, so it hard to distinguish it.
I'll attempt to fix that.
@freyandere on GitHub · 2026-12-01 06:51 UTC · original
Posted PR draft with proper fixes.
#4765
Posted a video in discussion (https://github.com/trustno1-coder/VIctory-NVIDIA/discussions/4753)
@Matartos on GitHub · 2026-12-01 08:54 UTC · original
Hi @ArnoX5!
Now that your new UI has been merged into the official VIctory-NVIDIA project, would you consider adding multilingual support?
Suggested features:
We already have a reviewed Polish language pack with 301 entries, available here:
https://github.com/Sym3d/VIctory-NVIDIA/pull/1
Could we adapt this translation to your new interface or integrate one of the existing localization systems?
I'd be happy to contribute Polish translations and test the interface.
Thanks for your work!
@Razen114514 on GitHub · 2026-12-01 09:08 UTC · original
Numbers from a second, independent implementation of the 1% LOW figure, plus one
design point. I had my own version in #3920 and am closing it in favour of this one,
so treat these as test data rather than a competing proposal.
Host: RTX 5060 8 GB, i5-13490F, 32 GB, Windows 11 build 26200, driver 621.1.0.
Series S, 960x540 scene to a 1920x1080 output, DLSS performance, frame generation 2x,
build
v2026.11.30.01plus my branch.What the figure read, from a screenshot and the log of the same session:
And where it earns its place, a heavy view of that same session: the per-second lines
read 10.2-10.9 fps (97.8 / 92.6 / 91.5 ms a frame) while the 1% low read
1%L 189.9 ms (5.3 fps). Sorting those views by average puts two of them in theopposite order to sorting by 1% low, which is the whole point of showing both.
Second host, for the tests only: an RTX 5070 Ti 16 GB on Windows 11 26200 ran
cargo test -p victory-gpu --libat the head carrying that change: 1120 passed,2 failed, 66 ignored, and the seven feature tests for this figure pass singly there
as well.
One design point, from the same numbers. Mine used a 100-frame window; this PR
uses 240. At the frame rates this game actually runs at that is the difference
between roughly 7 seconds of history and roughly 18, because 240 frames at 13 fps is
18 s: a stutter stays in the figure long after the view that caused it, and a quiet
corridor does not wash it out. Neither is wrong, but if the reading is meant to say
"how bad is it now", a time-based window (the last ~8 s, at least 30 frames) behaves
the same at 12 fps and at 60, which a frame count cannot.
Two smaller things about the calculation, since they decide what the number means:
p99in the existingframe timesline is that line's own longestframe here: at 13-18 fps a second holds 13-18 frames, and the excerpt above shows
p99 20.2, longest 21.3for 59 frames. Over a hundred samples the same index,round((n - 1) * 0.99), lands on the second slowest -- one very long frame cannotbecome the whole figure, and one long frame cannot hide either. Whatever window is
used, the index convention should match the log line's, or the two disagree.
--for the first window after F3 comes back, which is right; worth a word in thecaption so it does not read as broken.
I have not built this PR, so this is not a review of the diff -- only measurements of
the same feature from two hosts, offered in case they help.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.