diff options
Diffstat (limited to 'docs/vi_patch.md')
| -rw-r--r-- | docs/vi_patch.md | 22 |
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 | ||
| 14 | None of the eight is a protection, licence or online patch: they change the frame rate, the picture and the game. | 14 | None 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 | 16 | The original VI-Patch port was checked offline. The measured simulation step is described in |
| 17 | run 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 | |||
| 69 | executable twice, these two places; the interval global has one more writer, a start-up initialiser that stores | 69 | executable twice, these two places; the interval global has one more writer, a start-up initialiser that stores |
| 70 | 1000 (no limit) before the settings are applied. | 70 | 1000 (no limit) before the settings are applied. |
| 71 | 71 | ||
| 72 | What 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 | 74 | On 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 | 75 | update. 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. | 79 | The game and camera timers use the measured frame duration. The loader redirects both reads of the nominal |
| 80 | frame duration to the timer's own minimum, initialized to 1/3000 s. The existing upper bound still limits a | ||
| 81 | step during a hitch to 1/15 s by default, or the value selected by `LEONIDA_SIM_MAX_STEP_MS`. This fixes the | ||
| 82 | clock's speedup at high frame rates. Systems that count rendered frames directly can still vary with FPS. | ||
| 83 | See 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 | ||