upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/vi_patch.md
diff options
context:
space:
mode:
authorubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-12-02 14:05:38 -0500
committerubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-12-02 14:05:38 -0500
commitab3bf6eceeb3f87807f71a0fd42872d503a0a208 (patch)
tree12e11a0f52b51159d7bdbe678e3c56065d3840fe /docs/vi_patch.md
parentb41763227aeed2d23c98af84bcbc1bddc7acdc90 (diff)
Uncap D3D12 rendering and use measured simulation stepscodex/d3d12-uncapped-simulation
Diffstat (limited to 'docs/vi_patch.md')
-rw-r--r--docs/vi_patch.md22
1 files changed, 13 insertions, 9 deletions
diff --git a/docs/vi_patch.md b/docs/vi_patch.md
index a6ccffa3e..2eac5ca01 100644
--- a/docs/vi_patch.md
+++ b/docs/vi_patch.md
@@ -13,8 +13,8 @@ written are Leonida's own. The idea of each patch is ZiZc3's.
13 13
14None of the eight is a protection, licence or online patch: they change the frame rate, the picture and the game. 14None of the eight is a protection, licence or online patch: they change the frame rate, the picture and the game.
15 15
16**Not run in the game.** The places were checked offline only (below). Nothing here has been seen working in a 16The original VI-Patch port was checked offline. The measured simulation step is described in
17run yet. 17[Uncapped rendering and simulation time](#uncapped-rendering-and-simulation-time).
18 18
19## The list 19## The list
20 20
@@ -69,14 +69,18 @@ Untouched, the title asks for 33 333 microseconds: 30 frames a second. The patch
69executable twice, these two places; the interval global has one more writer, a start-up initialiser that stores 69executable twice, these two places; the interval global has one more writer, a start-up initialiser that stores
701000 (no limit) before the settings are applied. 701000 (no limit) before the settings are applied.
71 71
72What can still hold the rate under 60: 72## Uncapped rendering and simulation time
73 73
74- `LEONIDA_FPS_CAP` (the F1 menu's FRAME RATE CAP, the F4 menu's frame-rate cap): unset, the frame clock of 74On 1.0.2.1 the loader skips the title's own deadline wait and lets that function finish its normal timestamp
75 `leonida-gpu/src/frame.rs` ticks at the title's interval, now 60 a second (the menu's `GAME (60)`); a value 75update. The runtime's frame events then do the pacing. The F1 and F4 frame-rate cap settings take effect live.
76 saved there replaces it, and `30` is how to have the old pace back. The play scripts do not set it. 76`GAME (60)` uses the title's requested interval, a numeric `LEONIDA_FPS_CAP` uses that rate, and `NONE`
77- The present itself does not wait: `Present(0, 0)` on a flip-discard swap chain, no vertical sync. 77(`LEONIDA_FPS_CAP=0`) lets frame events complete immediately. Frame generation has independent pacing.
78- The PC: the title waits for a tick before each present, and a frame that takes longer than 16.7 ms is simply 78
79 late. 79The game and camera timers use the measured frame duration. The loader redirects both reads of the nominal
80frame duration to the timer's own minimum, initialized to 1/3000 s. The existing upper bound still limits a
81step during a hitch to 1/15 s by default, or the value selected by `LEONIDA_SIM_MAX_STEP_MS`. This fixes the
82clock's speedup at high frame rates. Systems that count rendered frames directly can still vary with FPS.
83See the earlier timing measurements in [port_status.md](port_status.md#leonida-on-this-machine).
80 84
81## No Vignette 85## No Vignette
82 86