Method tables with no room after their last method get slots that log #942
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!942
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-942"
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?
@wildheathen on GitHub · 2026-11-28 09:30 UTC · original
wildheathen:table-margins→main· +443 −46 · 20 files · 3 commits · merged 2026-11-29 08:16 UTCWhat this changes
The method tables the layer hands the title are made longer than the interfaces we know, "so that a method a newer title adds logs instead of jumping into whatever follows the table" (
object.rs). About thirty tables had no such room: the command queue (0 slots after its last method in the newer layout, 2 in the older), the DXGI factory, and nearly every runtime object invictory-hle(saves, user, store, package, networking, input, speech, display, audio, media, the texture computer). A call to the next method jumped into whatever lay after the table.Each of them now has 8 more slots after the last one it had. A spare slot logs its slot and answers as the unwritten slots of that table already do:
E_NOTIMPLwhere they answer that, 0 for the input reading object, whose methods return counts and booleans. No method that was there changes, nor what it returns.Tests
One test a table (29 in all): the 8 slots after the table's former end are there, not null, and distinct. They failed before the change. After merging main at
77df871e:cargo test -p victory-gpu553 passed, 0 failed;cargo test -p victory-hle225 passed.Measured
A 3-minute scripted run from the start into the world (RTX 5080, diagnostics build): the game runs as before and none of the new slots is called, so nothing changes for this stretch of this title. It is for other scenes and other titles.
Limits
E_NOTIMPLas a wrong value, as with the slots that were there already.77df871e). DirectStorage's four tables got spare slots of their own on main with #912, so this PR now leaves them as main has them; the game save table keeps its margin over main's new blocking calls.object.rs, #838 and #840gameinput.rs); I will merge main again if they go in first.