The title's own 30 fps cap: a target-fps value it turns into its frame interval and enforces with a CPU limiter (60.0 fps with it set to 60) #2469

Open
opened 2026-11-26 05:06:50 +00:00 by github-bot · 4 comments
Owner

@⁠thegl0w on GitHub · 2026-11-25 14:15 UTC · original

This report was written with AI assistance (Claude Code). The runs, measurements and the reading of the title's code were done on my own machine. It contains no game data: no disassembly, no code bytes, no shaders or dumps. Offsets are relative to the title's image base.

Short version

  • In the menus and story loading, the title holds itself at exactly 30.0 fps even when the layer's frame pacing is uncapped. That's what @⁠GamingRipperDoc saw on #250, and @⁠wbkepler's audit there pointed at the title's own timing. This confirms it and finds where it is.
  • The title keeps an integer target frame rate (30) in a settings object and turns it into a frame interval in microseconds (1,000,000 / fps, so 33,333). The same value is what it passes to SetFrameIntervalX.
  • A CPU-side limiter in the title waits out that interval with QueryPerformanceCounter: it sleeps in short steps while more than about 2 ms remain, then spins.
  • With the target-fps value made to read as 60 (a local test patch, not proposed here), the title asked for a 16.667 ms interval and story loading ran at 60.0 fps (16.7 ms) instead of 30.0. No crash or other change was seen up to the world, where the frame rate is limited by the GPU work as before.
  • Not known yet: whether gameplay speed stays correct at 60 fps. Nothing reaches the world above 30 fps today, so it can't be measured yet.

Where it is (image-relative offsets)

What Where
The frame limiter (sleep while more than ~2 ms remain, then spin on QueryPerformanceCounter) the function around +0x120600, its sleep at +0x12073e
The interval it targets, as an integer number of microseconds global at image +0x98f84ac
The two places that set that global from the target fps (1,000,000 / fps; 0 or values of 1,000 and up are clamped to 1,000) +0x1e0fc94 and +0x22435ce
The target-fps field they read offset +0x210 of the object both functions receive
A third write (start-up initialisation) +0x2470eef

The limiter rounds the rate to a whole number before computing its period, so the target-fps value, not the microsecond interval, decides the period: 30 gives 33.3 ms and 60 gives 16.7 ms.

How it was found

  1. A local layer switch made the layer's frame pacing uncapped (the title's interval ignored), as in #250. Menus ran at 110 to 125 fps; from story loading on, frames were held at exactly 30.0 fps / 33.3 ms while the frame's work took a few ms.
  2. VICTORY_STACKS every second through that 30 fps phase (35 samples). The thread that paces the frame was in the title's limiter sleep (+0x12073e) in 17 of 19 samples. title-main waits on that thread through the function at +0x23cf6a0, the one with the watchdog from #1118. It was polling in that wait in 12 of 35 samples.
  3. Reading the limiter showed its period comes from the global above; looking for what writes the global led to the two setters and the target-fps field.
  4. Reporting a 120 Hz display mode (also a local switch) did not change anything: the title still asked for 33.333 ms and held 30 fps. So the value doesn't come from the reported refresh rate alone.
  5. Making the two reads of the target-fps field return 60 (local patch) gave a 16.667 ms interval and 60.0 fps through story loading.

Frame rate during story loading (5 s averages from the layer's log)

Run Layer pacing Title's interval Story loading
Baseline title's 33.333 ms 30.0 fps, 33.3 ms
Layer uncapped ignored 33.333 ms 30.0 fps, 33.3 ms
Layer uncapped, 120 Hz mode reported ignored 33.333 ms 30.0 fps, 33.3 ms
Target-fps field read as 60 title's 16.667 ms 60.0 fps, 16.7 ms

What this means for later

  • An opt-in "frame rate target" in a layer would have to set the title's target-fps value. Capping or uncapping the layer's own pacing doesn't change it.
  • Before anyone offers 60 fps, gameplay speed at 60 needs checking: whether animation, physics, timers and cutscene sync use the measured frame time or assume 30. That can only be measured once the world runs above 30 fps. A start would be timing a cutscene against its audio at 30 and 60.
  • What sets the target-fps field to 30 in the first place (a console mode, a setting, a performance profile) isn't traced yet.

Setup

  • Windows 11 (build 26300), Intel Core i7-11800H, NVIDIA GeForce RTX 3070 Laptop GPU 8 GB (driver 610.88), 32 GB RAM.
  • fxceless/victory-fork at a253706, diagnostics build, plus three local test switches (uncapped layer pacing, reported refresh rate, code patch). None of them is proposed here.
  • Title 1.0.2.1, Series X profile, my own dump.

No game data in this report: no disassembly, no code bytes, no shaders or dumps.

**@⁠thegl0w** on GitHub · 2026-11-25 14:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/2469) > *This report was written with AI assistance (Claude Code). The runs, measurements and the reading of the title's code were done on my own machine. It contains no game data: no disassembly, no code bytes, no shaders or dumps. Offsets are relative to the title's image base.* ## Short version - In the menus and story loading, the title holds itself at exactly 30.0 fps even when the layer's frame pacing is uncapped. That's what @⁠GamingRipperDoc saw on #250, and @⁠wbkepler's audit there pointed at the title's own timing. This confirms it and finds where it is. - The title keeps an integer **target frame rate** (30) in a settings object and turns it into a frame interval in microseconds (`1,000,000 / fps`, so 33,333). The same value is what it passes to `SetFrameIntervalX`. - A CPU-side limiter in the title waits out that interval with `QueryPerformanceCounter`: it sleeps in short steps while more than about 2 ms remain, then spins. - **With the target-fps value made to read as 60** (a local test patch, not proposed here), the title asked for a 16.667 ms interval and story loading ran at **60.0 fps** (16.7 ms) instead of 30.0. No crash or other change was seen up to the world, where the frame rate is limited by the GPU work as before. - **Not known yet:** whether gameplay speed stays correct at 60 fps. Nothing reaches the world above 30 fps today, so it can't be measured yet. ## Where it is (image-relative offsets) | What | Where | |---|---| | The frame limiter (sleep while more than ~2 ms remain, then spin on `QueryPerformanceCounter`) | the function around `+0x120600`, its sleep at `+0x12073e` | | The interval it targets, as an integer number of microseconds | global at image `+0x98f84ac` | | The two places that set that global from the target fps (`1,000,000 / fps`; 0 or values of 1,000 and up are clamped to 1,000) | `+0x1e0fc94` and `+0x22435ce` | | The target-fps field they read | offset `+0x210` of the object both functions receive | | A third write (start-up initialisation) | `+0x2470eef` | The limiter rounds the rate to a whole number before computing its period, so the target-fps value, not the microsecond interval, decides the period: 30 gives 33.3 ms and 60 gives 16.7 ms. ## How it was found 1. **A local layer switch** made the layer's frame pacing uncapped (the title's interval ignored), as in #250. Menus ran at 110 to 125 fps; from story loading on, frames were held at exactly 30.0 fps / 33.3 ms while the frame's work took a few ms. 2. **`VICTORY_STACKS` every second through that 30 fps phase** (35 samples). The thread that paces the frame was in the title's limiter sleep (`+0x12073e`) in 17 of 19 samples. `title-main` waits on that thread through the function at `+0x23cf6a0`, the one with the watchdog from #1118. It was polling in that wait in 12 of 35 samples. 3. **Reading the limiter** showed its period comes from the global above; looking for what writes the global led to the two setters and the target-fps field. 4. **Reporting a 120 Hz display mode** (also a local switch) did *not* change anything: the title still asked for 33.333 ms and held 30 fps. So the value doesn't come from the reported refresh rate alone. 5. **Making the two reads of the target-fps field return 60** (local patch) gave a 16.667 ms interval and 60.0 fps through story loading. ### Frame rate during story loading (5 s averages from the layer's log) | Run | Layer pacing | Title's interval | Story loading | |---|---|---|---| | Baseline | title's | 33.333 ms | 30.0 fps, 33.3 ms | | Layer uncapped | ignored | 33.333 ms | 30.0 fps, 33.3 ms | | Layer uncapped, 120 Hz mode reported | ignored | 33.333 ms | 30.0 fps, 33.3 ms | | Target-fps field read as 60 | title's | **16.667 ms** | **60.0 fps, 16.7 ms** | ## What this means for later - An opt-in "frame rate target" in a layer would have to set the title's target-fps value. Capping or uncapping the layer's own pacing doesn't change it. - Before anyone offers 60 fps, gameplay speed at 60 needs checking: whether animation, physics, timers and cutscene sync use the measured frame time or assume 30. That can only be measured once the world runs above 30 fps. A start would be timing a cutscene against its audio at 30 and 60. - What sets the target-fps field to 30 in the first place (a console mode, a setting, a performance profile) isn't traced yet. ## Setup - Windows 11 (build 26300), Intel Core i7-11800H, NVIDIA GeForce RTX 3070 Laptop GPU 8 GB (driver 610.88), 32 GB RAM. - `fxceless/victory-fork` at `a253706`, diagnostics build, plus three local test switches (uncapped layer pacing, reported refresh rate, code patch). None of them is proposed here. - Title 1.0.2.1, Series X profile, my own dump. No game data in this report: no disassembly, no code bytes, no shaders or dumps.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:06:50 +00:00
Author
Owner

@⁠thegl0w on GitHub · 2026-11-25 15:07 UTC · original

Follow-up written with AI assistance (Claude Code). The runs, measurements and the reading of the title's code were done on my own machine. No game data: no disassembly, no code bytes. Offsets are relative to the title's image base.

Follow-up: the title's time step is clamped to between 1/30 and 1/15 s, so it runs slow below 15 fps and fast above 30

Lifting the fps cap above isn't enough on its own. The title's frame time step has a floor of 1/30 s, so at 60 fps the game runs at about double speed. The same clamp has a ceiling of 1/15 s, which is why every build in the world today runs in slow motion.

What the title does

  • The time step: a float at image +0xabbef4c, the time step in seconds of a timer structure at +0xabbef40. Its inverse is at +0x14 of that structure. It's read as a float in about 1,190 places, far more than any other global. Several other timer structures share this layout; only this one was measured.
  • The update (+0x2226040) takes the measured frame time, the time scale and a clamp flag. With clamping on:
    • a ceiling of 1/15 s (a constant);
    • a floor, chosen by a flag at +0x7453cc0: either the value at +0x6849844 (live: 1/30 s) or a small one at +0x6847660 (live: 1/3000 s). The flag was 1, so the 1/30 floor applied, in the menus, story loading and the world.
  • Start-up (+0x2226130) sets these timers to 0.05 s before the first update.

Measured, by reading the title's memory while it ran (read-only)

Situation Real frame time Time step read Game speed
Menus (title's own loop at ~29.5 fps) ~34 ms 0.0337–0.0343 s correct
World, about 1 fps (Belobug/VIctory-Belobug-AMD at 01aadd1, RTX 3070) 1.45–1.65 s 0.0667 s in every sample about 4–5%
Story loading at 60 fps (target-fps value read as 60, see above; victory-fork a253706) 16.7–20 ms 0.0333 s in 38 of 40 samples about 2x

So:

  • Below 15 fps each frame counts as at most 1/15 s: 2 fps is about 1/7.5 speed, 1 fps about 1/15. Long "stable" runs at 1–3 fps cover only a few minutes of game time, and in-engine cutscenes fall behind their audio, which plays in real time (seen in play: the audio is at normal speed while the picture isn't).
  • 15 to 30 fps runs at real speed.
  • Above 30 fps each frame still counts as at least 1/30 s, so 60 fps runs at about 2x. A 60 fps option would need to lower this floor as well as change the target fps. Making the floor follow the target fps would be the obvious form, but that isn't tested.

A note for anyone measuring the same way

Querying the title's window title from another process twice a second (to log the fps shown there) set off the title's watchdog at +0x2215c35 within about 30 s in two runs out of two. The same runs without that query, reading memory only, were fine.

**@⁠thegl0w** on GitHub · 2026-11-25 15:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/2469#issuecomment-7166349197) > *Follow-up written with AI assistance (Claude Code). The runs, measurements and the reading of the title's code were done on my own machine. No game data: no disassembly, no code bytes. Offsets are relative to the title's image base.* ## Follow-up: the title's time step is clamped to between 1/30 and 1/15 s, so it runs slow below 15 fps and fast above 30 Lifting the fps cap above isn't enough on its own. The title's frame time step has a floor of 1/30 s, so at 60 fps the game runs at about double speed. The same clamp has a ceiling of 1/15 s, which is why every build in the world today runs in slow motion. ### What the title does - **The time step:** a float at image `+0xabbef4c`, the time step in seconds of a timer structure at `+0xabbef40`. Its inverse is at `+0x14` of that structure. It's read as a float in about 1,190 places, far more than any other global. Several other timer structures share this layout; only this one was measured. - **The update** (`+0x2226040`) takes the measured frame time, the time scale and a clamp flag. With clamping on: - a **ceiling of 1/15 s** (a constant); - a **floor**, chosen by a flag at `+0x7453cc0`: either the value at `+0x6849844` (live: **1/30 s**) or a small one at `+0x6847660` (live: 1/3000 s). The flag was **1**, so the 1/30 floor applied, in the menus, story loading and the world. - Start-up (`+0x2226130`) sets these timers to 0.05 s before the first update. ### Measured, by reading the title's memory while it ran (read-only) | Situation | Real frame time | Time step read | Game speed | |---|---|---|---| | Menus (title's own loop at ~29.5 fps) | ~34 ms | 0.0337–0.0343 s | correct | | World, about 1 fps (Belobug/VIctory-Belobug-AMD at `01aadd1`, RTX 3070) | 1.45–1.65 s | **0.0667 s** in every sample | **about 4–5%** | | Story loading at 60 fps (target-fps value read as 60, see above; victory-fork `a253706`) | 16.7–20 ms | **0.0333 s** in 38 of 40 samples | **about 2x** | So: - **Below 15 fps** each frame counts as at most 1/15 s: 2 fps is about 1/7.5 speed, 1 fps about 1/15. Long "stable" runs at 1–3 fps cover only a few minutes of game time, and in-engine cutscenes fall behind their audio, which plays in real time (seen in play: the audio is at normal speed while the picture isn't). - **15 to 30 fps** runs at real speed. - **Above 30 fps** each frame still counts as at least 1/30 s, so 60 fps runs at about 2x. A 60 fps option would need to lower this floor as well as change the target fps. Making the floor follow the target fps would be the obvious form, but that isn't tested. ### A note for anyone measuring the same way Querying the title's window title from another process twice a second (to log the fps shown there) set off the title's watchdog at `+0x2215c35` within about 30 s in two runs out of two. The same runs without that query, reading memory only, were fine.
Author
Owner

@⁠thegl0w on GitHub · 2026-11-25 15:24 UTC · original

Follow-up written with AI assistance (Claude Code). Measured on my own machine; no game data, no disassembly, no code bytes. Offsets are relative to the title's image base.

Follow-up 2: one value sets both the cap and the floor; with it at 60, game time tracks real time

The time-step floor from the comment above is not a separate constant. It's 1 / target fps, taken from the same target-fps field (+0x210 of the settings object) as the frame interval:

  • The function at +0x2241fd0 returns the title's target frame rate. If the target-fps field is non-zero, it returns that. If the field is 0, it derives a rate from the display instead: the refresh rate (two globals at +0xa9438d4 / +0xa9438d8) divided by a swap interval at +0x214 of the same object, or 30 when that is 0 or the result isn't positive.
  • The setter at +0x2243560…+0x22435fc computes the frame interval from the field (+0x22435ce, see the first report), then sets the floor to 1 / that rate (+0x22435ea).

The earlier 60 fps test changed only the two interval setters' reads of the field, so the floor stayed at 1/30 and the game ran at double speed. With the field read as 60 at all three reads (the two setters and the rate function; still a local test patch, not proposed here):

Earlier test (2 of 3 reads) Now (all 3 reads)
Floor at +0x6849844 0.0333 s 0.0167 s
Time step at 60 fps (16.7 ms frames) 0.0333 s (about 2x speed) 0.0167 s (correct)
Time step during heavy loading frames (~33.5 ms) 0.0333 s 0.0335 s (the real frame time)

So one value, the target-fps field, decides the title's frame cap, its limiter and its time-step floor. Set to 60 everywhere it's read, the title paces itself at 60 and its game time follows real time. The 1/15 s ceiling (slow motion below 15 fps) is unchanged.

The field-is-0 path, also tested (the two setters see 0 and the rate function takes its display branch; local test patch):

  • The frame interval becomes 1,000 µs (0 is clamped to 1,000 fps), so the title's own limiter is effectively off. Frames were held at 60 here by the layer's presentation, not by the title.
  • The rate function's display branch read a refresh of 60/1 and a swap interval of 0, so it returned 30, and the floor stayed at 1/30 s.
  • So the time step sat at 0.0333 s during 16.7 ms frames (19 of 30 samples; the rest were heavier loading frames): about double speed again.

So if a situation on real hardware ever leaves the target-fps field at 0, the frame rate is uncapped but the game runs fast in proportion. That's a testable prediction for any report of an "uncapped" console version: the game should visibly speed up above 30 fps.

Where the refresh value comes from, and a 120 Hz table:

  • At start-up (+0x2481ca0…+0x2481e2f) the title asks the display output for its mode list (output method 0xa8, the one the layer answers in dxgi.rs) and looks for a mode with a refresh of exactly 120. If one exists it sets a flag (+0x760e660) and stores a refresh of 120/1, otherwise 60/1 (the globals at +0xa9438d4 / +0xa9438d8). A 240 Hz-only mode list doesn't count.
  • The present-interval code (+0x247ab10…) computes a swap interval as refresh ÷ desired fps (at most 4), then looks up the frame interval in a table at +0x61ece60 with one row per refresh:
Swap interval 1 2 3 4
60 Hz 16,667 µs (60 fps) 33,333 (30) 50,000 (20) 66,667 (15)
120 Hz 8,333 µs (120 fps) 16,667 (60) 25,000 (40) 33,333 (30)

So the title's frame pacing is built for 120 Hz output, including a 40 fps interval (the usual 120 Hz "balanced" rate). Whether the retail game ever sets the target-fps field above 30 isn't known; this only shows the pacing code supports it.

Tested end to end: a 120 Hz mode reported (local layer switch) and the target-fps field read as 40 at all three reads: frame interval 25,000 µs, refresh 120/1 with the 120 Hz flag set, floor 0.025 s (1/40), a steady 40.0 fps (25.0 ms) through story loading, and a time step of 0.0250 s at 25 ms frames (15 of 30 samples; the rest were heavier frames, also matching real time). So a 40 fps mode runs at the correct game speed too.

What's left open:

  • What sets the field to 30. It isn't written through the settings accessor directly; it's probably filled from a settings profile. The names appear to be hashed, so there's no string to follow. A data watchpoint on the field would find it.
  • 120 fps at 120 Hz (8,333 µs) wasn't tried. Frames at that rate need far more speed than any build has today.
  • Gameplay itself at 60 (physics, animation, scripts) still needs checking once a build reaches the world above 30 fps; this only shows the time step is right.
**@⁠thegl0w** on GitHub · 2026-11-25 15:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/2469#issuecomment-7166807436) > *Follow-up written with AI assistance (Claude Code). Measured on my own machine; no game data, no disassembly, no code bytes. Offsets are relative to the title's image base.* ## Follow-up 2: one value sets both the cap and the floor; with it at 60, game time tracks real time The time-step floor from the comment above is not a separate constant. It's `1 / target fps`, taken from the **same target-fps field** (`+0x210` of the settings object) as the frame interval: - The function at `+0x2241fd0` returns the title's **target frame rate**. If the target-fps field is non-zero, it returns that. If the field is 0, it derives a rate from the display instead: the refresh rate (two globals at `+0xa9438d4` / `+0xa9438d8`) divided by a swap interval at `+0x214` of the same object, or **30** when that is 0 or the result isn't positive. - The setter at `+0x2243560`…`+0x22435fc` computes the frame interval from the field (`+0x22435ce`, see the first report), then sets the floor to `1 / ` that rate (`+0x22435ea`). The earlier 60 fps test changed only the two interval setters' reads of the field, so the floor stayed at 1/30 and the game ran at double speed. **With the field read as 60 at all three reads** (the two setters and the rate function; still a local test patch, not proposed here): | | Earlier test (2 of 3 reads) | Now (all 3 reads) | |---|---|---| | Floor at `+0x6849844` | 0.0333 s | **0.0167 s** | | Time step at 60 fps (16.7 ms frames) | 0.0333 s (about 2x speed) | **0.0167 s** (correct) | | Time step during heavy loading frames (~33.5 ms) | 0.0333 s | 0.0335 s (the real frame time) | So **one value, the target-fps field, decides the title's frame cap, its limiter and its time-step floor.** Set to 60 everywhere it's read, the title paces itself at 60 and its game time follows real time. The 1/15 s ceiling (slow motion below 15 fps) is unchanged. **The field-is-0 path, also tested** (the two setters see 0 and the rate function takes its display branch; local test patch): - The frame interval becomes 1,000 µs (0 is clamped to 1,000 fps), so **the title's own limiter is effectively off**. Frames were held at 60 here by the layer's presentation, not by the title. - The rate function's display branch read a refresh of 60/1 and a swap interval of 0, so it returned **30**, and **the floor stayed at 1/30 s**. - So the time step sat at 0.0333 s during 16.7 ms frames (19 of 30 samples; the rest were heavier loading frames): **about double speed again**. So if a situation on real hardware ever leaves the target-fps field at 0, the frame rate is uncapped but the game runs fast in proportion. That's a testable prediction for any report of an "uncapped" console version: the game should visibly speed up above 30 fps. **Where the refresh value comes from, and a 120 Hz table:** - At start-up (`+0x2481ca0`…`+0x2481e2f`) the title asks the display output for its mode list (output method `0xa8`, the one the layer answers in `dxgi.rs`) and looks for a mode with a refresh of **exactly 120**. If one exists it sets a flag (`+0x760e660`) and stores a refresh of 120/1, otherwise 60/1 (the globals at `+0xa9438d4` / `+0xa9438d8`). A 240 Hz-only mode list doesn't count. - The present-interval code (`+0x247ab10`…) computes a swap interval as `refresh ÷ desired fps` (at most 4), then looks up the frame interval in a table at `+0x61ece60` with one row per refresh: | Swap interval | 1 | 2 | 3 | 4 | |---|---|---|---|---| | 60 Hz | 16,667 µs (60 fps) | 33,333 (30) | 50,000 (20) | 66,667 (15) | | 120 Hz | 8,333 µs (120 fps) | 16,667 (60) | **25,000 (40)** | 33,333 (30) | So the title's frame pacing is built for 120 Hz output, including a 40 fps interval (the usual 120 Hz "balanced" rate). Whether the retail game ever sets the target-fps field above 30 isn't known; this only shows the pacing code supports it. **Tested end to end: a 120 Hz mode reported (local layer switch) and the target-fps field read as 40 at all three reads:** frame interval 25,000 µs, refresh 120/1 with the 120 Hz flag set, floor 0.025 s (1/40), a steady **40.0 fps** (25.0 ms) through story loading, and a time step of **0.0250 s** at 25 ms frames (15 of 30 samples; the rest were heavier frames, also matching real time). So a 40 fps mode runs at the correct game speed too. What's left open: - **What sets the field to 30.** It isn't written through the settings accessor directly; it's probably filled from a settings profile. The names appear to be hashed, so there's no string to follow. A data watchpoint on the field would find it. - **120 fps at 120 Hz** (8,333 µs) wasn't tried. Frames at that rate need far more speed than any build has today. - Gameplay itself at 60 (physics, animation, scripts) still needs checking once a build reaches the world above 30 fps; this only shows the time step is right.
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 17:08 UTC · original

One data point that connects this to the layer: the title's 120 Hz path is gated by the display mode list, and our modes answer (victory-gpu/src/dxgi.rs) returns a fixed single mode — 4K at 60/1 — with a comment already noting "Grand Theft Auto VI looks for a 120 Hz one to allow 120 Hz frame intervals" (marked as a shortcut to revisit). So today the title's +0x760e660 flag can never set on this layer, and the display-derived globals always read 60/1.

That makes the field-0 fallback the relevant one: it returns refresh ÷ swap = 60/0 -> 30 — which happens to be the console-correct cap anyway. But your measured 40 fps path (25,000 µs interval, floor 1/40, correct game speed) is exactly what reporting a 120 Hz mode would unlock without any title patching — a config/env knob on the mode list (VICTORY_DISPLAY_HZ=120) is all that's between "field stays 30" and "field can take 40". If experiments with >30 fps pacing ever become useful for perf headroom testing, that's the cheapest legitimate switch — the pacing math your report documents does the rest.

**@⁠kotekompotek** on GitHub · 2026-11-25 17:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/2469#issuecomment-7169054437) One data point that connects this to the layer: the title's 120 Hz path is gated by the display mode list, and our `modes` answer (`victory-gpu/src/dxgi.rs`) returns a fixed single mode — 4K at 60/1 — with a comment already noting "Grand Theft Auto VI looks for a 120 Hz one to allow 120 Hz frame intervals" (marked as a shortcut to revisit). So today the title's `+0x760e660` flag can never set on this layer, and the display-derived globals always read 60/1. That makes the field-0 fallback the relevant one: it returns `refresh ÷ swap = 60/0 -> 30` — which happens to be the console-correct cap anyway. But your measured 40 fps path (25,000 µs interval, floor 1/40, correct game speed) is exactly what reporting a 120 Hz mode would unlock without any title patching — a config/env knob on the mode list (`VICTORY_DISPLAY_HZ=120`) is all that's between "field stays 30" and "field can take 40". If experiments with >30 fps pacing ever become useful for perf headroom testing, that's the cheapest legitimate switch — the pacing math your report documents does the rest.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:50 UTC · original

Automated triage for the maintainers.

These measurements were made on another tree (fxceless/victory-fork) with local patches to the title. The part that concerns our code checks out against main. In crates/victory-gpu/src/dxgi.rs, modes reports one fixed 4K 60 Hz mode. A shortcut: comment there notes that the title looks for a 120 Hz mode. So the title's 120 Hz pacing path is never offered by this layer, and the title stays at its own 30 fps target.

The finding that matters for the project's current state is the second comment: the title clamps its time step to at most 1/15 s. That explains why runs in the world at about 1 fps play in slow motion while audio runs in real time.

An option for a frame-rate target fits the scope (Windows, this title). It would need the title's target value changed consistently, not only the layer's pacing, and gameplay speed above 30 fps checked once the world runs that fast. Kept open as a request. Any patch to the title has to be done in our runtime, and must not ship or post title code.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 18:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/2469#issuecomment-7171472338) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T17:08:02Z at=2026-11-25T19:02:00Z --> Automated triage for the maintainers. These measurements were made on another tree (`fxceless/victory-fork`) with local patches to the title. The part that concerns our code checks out against main. In `crates/victory-gpu/src/dxgi.rs`, `modes` reports one fixed 4K 60 Hz mode. A `shortcut:` comment there notes that the title looks for a 120 Hz mode. So the title's 120 Hz pacing path is never offered by this layer, and the title stays at its own 30 fps target. The finding that matters for the project's current state is the second comment: the title clamps its time step to at most 1/15 s. That explains why runs in the world at about 1 fps play in slow motion while audio runs in real time. An option for a frame-rate target fits the scope (Windows, this title). It would need the title's target value changed consistently, not only the layer's pacing, and gameplay speed above 30 fps checked once the world runs that fast. Kept open as a request. Any patch to the title has to be done in our runtime, and must not ship or post title code. --- _Generated by [Claude Code](https://claude.ai/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/Marvisak--VIctory#2469
No description provided.