Repository navigation
Conversation
|
First test report, on Windows 10 + AMD: the uncapped limit works, but only until the title starts loading the story; from there on frames are paced at exactly 30 fps again. Setup: Windows 10 22H2 19045.7846, RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X, 3840x2160 window.
From the runtime's per-5 s
The uncapped part looked right to me: no visible speed-up of animation or audio, and no tearing I noticed. But after the switch the frames sit at exactly 33.3 ms while the work takes ~3 ms, so something keeps pacing them at 30 that No game data used. AI-assisted (Claude Code); I played the run. |
|
Tested current PR head
These tests do not exercise a real swapchain, adapter/display tearing support, or the reported return to 30 FPS during story loading. The CLI package test is an existing loader-lock test, so it does not verify the |
|
Thanks @GamingRipperDoc for the detailed report! I audited every frame-pacing, wait, and present path across
That strongly points to the lock-back to 30.0 fps (33.3 ms) around frame ~13,866 being the title's own CPU-side frame/simulation limiter (e.g. a QPC + Pushed a small follow-up commit to |
|
Rebased onto current main ( AI-assisted (Claude Code); checked on Windows 11 / RTX 5090. |
6fa50e2 to
6c2c141
Compare
|
Rebased onto AI-assisted (Claude Code); checked on Windows 11 / RTX 5090. |
|
Automated triage for the maintainers. This pull request no longer merges cleanly into Generated by Claude Code |
…resh modes, tearing swapchain Adds [graphics] fps_limit/allow_tearing, --fps, VICTORY_FPS_LIMIT, an override of the title's SetFrameIntervalX interval, a high-resolution waitable timer, 60-240 Hz display modes and a 3-buffer ALLOW_TEARING swapchain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6c2c141 to
1899bb5
Compare
|
Rebased onto current main ( AI-assisted (Claude Code); checked on Windows 11 / RTX 5090. |
Summary
Makes console frame pacing configurable (including uncapped) and upgrades host presentation for high-refresh displays:
victory-core,victory.example.toml,apps/victory):[graphics]section (fps_limit,allow_tearing) with#[serde(default)]toFileConfig(victory.example.tomlupdated).--fps <N>CLI flag onvictory run(0= uncapped) andVICTORY_FPS_LIMIT/VICTORY_ALLOW_TEARINGenv overrides (precedence:--fps> env >victory.toml> title default).victory-gpu/src/frame.rs):frame::set_fps_limit(Option<u32>)overridingSetFrameIntervalX(Some(0)returns immediately while advancing tokens/ticks;Some(n)setsround(1_000_000 / n)us logged once atinfo!).thread::sleepwith a thread-local Windows high-resolution waitable timer (CREATE_WAITABLE_TIMER_HIGH_RESOLUTION) plus 500 us spin tail (withthread::sleepfallback).FrameStatsviaframe::stats()while keeping the COM statistics entry point safe.dxgi.rs,host.rs):dxgi.rswith DXGIMORE_DATAsemantics.host.rsflip-model swapchain to 3 buffers and probesIDXGIFactory5::CheckFeatureSupport(DXGI_FEATURE_PRESENT_ALLOW_TEARING), passingALLOW_TEARINGon creation,ResizeBuffers, andPresent(0, flags)with automatic fallback toPresent(0, 0).victory-core(10/10) andvictory-gpu(45/45).Verification
cargo clippy --workspace --all-targets— passed (zero new warnings)cargo clippy -p victory --features diagnostics --all-targets— passedcargo test --workspace— passedcargo xtask policy— passed (151 files ok)