Repository navigation
Conversation
|
Tested this PR on Linux (x86-64, NVIDIA Quadro T1000, driver 620.73.04, clang 23, BotW 1.9.0). Great feature overall—I ran into a few issues while building and testing it:
Hope this helps! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Implements the built-in in-game benchmark suite directly in the F1 menu (
Benchmarkpage), bringing the canonical routes and metrics fromtools/perf_routes.pyto players without needing Python or developer mode.runtime/benchmark.h,runtime/benchmark.c:plateau,kakariko,field,rito,castle,hateno,korok) plus a Current spot mode, Quick suite (3 routes), and Single route mode.bench_frame): saves the player's position, hour of day, and FPS/VSync/Frame generation/overlay settings; optionally uncaps FPS/VSync/Frame gen during measurement; teleports, activates fly hover + fixed time of day (10:00), aims camera viacontrol_look_start, warms up, records per-frame microsecond deltas (BENCH_MAX_FRAMES), and cleanly restores Link and all settings afterwards (or on early cancel withEsc/B), reopening the Benchmark results page.RT_ON_RESET(bench_reset)to clear per-boot state and restore temporary overrides on reboot.> max(2 * median, 33.33 ms)), 120-bin max-preserving frame-time sparkline, and peak VRAM/RAM/GPU telemetry per route and combined overall.bench_format_markdown) and writes timestamped CSV reports under<data_root>/benchmarks/(bench_save_csv).runtime/control.c,runtime/control_input.c: drivesbench_frame,control_tp_frame,look_step, and fly-mode input/camera aiming while a benchmark is active even when developer mode is off.runtime/ui/benchmark_ui.h,runtime/ui/benchmark_ui.mm,runtime/ui/menu.mm:15) to the F1 menu with suite configuration, KPI summary cards, clickable per-route results table, custom frame-time graph with30/60/120 FPSreference lines, and Markdown clipboard / CSV export actions.BENCHMARK i / N, current phase & progress bar, live FPS/ms & sparkline,Esc/Bcancel).runtime/ui/i18n/*.inc: adds translations for all new UI strings across all 13 languages.tests/test_benchmark.c,Makefile: adds unit tests (test-benchmark) covering steady frame rates, hitches, 1%/0.1% lows, percentiles, sparkline max-preservation, route metadata, and Markdown export.How it was tested
On Windows 11 (
NVIDIA GeForce RTX 3050 Laptop GPU, MSYS2 UCRT64clang):tools/venv/Scripts/python.exe tools/i18n_check.py:1598 menu texts,0 missing, 0 unusedacross all 13 languages.make -j8: builtbuild/savagewind.execleanly and linkedbuild/swgame.dll(1.9.0,269 sites).make -j8 test-benchmark:PASS: bench_compute_stats, hitches, 1%/0.1% lows, sparkline, markdown, routes.make -j8 test-pc-controls: all tests intest_pc_controls,test_options_pointer, andtest_pc_settingspassed.1.9.0,SAVAGEWIND_EXIT_AT=300): reachedframe 249(124.0 fps) cleanly with exit code0.git diff --check: clean.Checklist
testand opened againsttest