GPU: build an object name only where the log takes it #1824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1826"
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?
Imported from Marvisak/VIctory. Originally posted by slatefield on 2026-11-24T23:03:02Z.
Closing: the triage is right that #541 supersedes this. Once
SetNamestores the name asWKPDID_D3DDebugObjectNameWprivate data, the UTF-16 scan has to happen in every build anyway, so the early return this PR adds would either be dead weight or, if it stayed, make those names disappear in release builds. It was a four-line saving and #541 is the better change. No hard feelings from me if it lands as-is.The observation behind it still stands for whatever ends up there: today the scan and the
Stringare built before adebug!that release builds (INFO cap) never emit.Imported from Marvisak/VIctory. Originally posted by Melow-code on 2026-11-24T23:05:36Z.
Review: APPROVED
The tracing::enabled!(DEBUG) guard avoids a UTF-16 to UTF-8 conversion on every SetName call in release builds. The diagnostics config still logs. Clean, +4/−0.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:47:33Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Object names built only where logging needs them: debug-name formatting moved behind the log check — avoids per-resource string formatting in release. Fine.
Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-24T23:06:27Z.
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-24T23:12:35Z.
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug,
dbb04eb(onmain70564ae).cargo test -p victory-gpu --locked: 76 passed, 2 failed, 1 ignored. The 2 are the capped-heap failuresmainhas on NVIDIA (#1744:dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views), so there are no new failures.AI-assisted (Claude Code). Synthetic tests only.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:31:48Z.
Automated triage for the maintainers.
Needs work.
set_nameincrates/victory-gpu/src/object.rsnow returnsS_OKwithout reading the name unless DEBUG logging is on. Onmainthat is correct, since names only reach the log, and it saves a UTF-16 conversion per object. But #541 (merge candidate) makesSetNamestore the name asWKPDID_D3DDebugObjectNameWprivate data. The title, or a capture tool, can read that back throughGetPrivateData. With both merged, names would silently stop being stored in normal builds. Please restrict the early return to the log formatting only, or coordinate with #541 so the stored name is kept either way.CI: no check runs on the head commit.
Generated by Claude Code
Pull request closed