diff --git a/crates/summit-core/src/optimizer.rs b/crates/summit-core/src/optimizer.rs index cea3eac..69952a5 100644 --- a/crates/summit-core/src/optimizer.rs +++ b/crates/summit-core/src/optimizer.rs @@ -87,7 +87,16 @@ pub fn parse(json: &str, file: &Path) -> Result { let err = text(o.get("error")); if !err.is_empty() { notes.push(format!("The run ended with an error: {err}")); } let met = o.get("met").and_then(Value::as_bool).unwrap_or(!top.is_empty()) && !top.is_empty(); - if !met && notes.is_empty() { notes.push("Nothing that was measured met the goal.".to_string()); } + if !met && notes.is_empty() { + // what the closest configuration fell short on, in the engine's own words + let fails: Vec = o.get("failures").and_then(Value::as_array).map(|a| a.iter().map(|f| text(f.get("text"))).filter(|t| !t.is_empty()).collect()).unwrap_or_default(); + let closest = text(o.get("closest").and_then(|c| c.get("label"))); + notes.push(match (closest.is_empty(), fails.is_empty()) { + (false, false) => format!("Nothing that was measured met the goal. The closest was {closest}: {}.", fails.join("; ")), + (false, true) => format!("Nothing that was measured met the goal. The closest was {closest}."), + _ => "Nothing that was measured met the goal.".to_string(), + }); + } let sub = |k: &str, f: &str| text(o.get(k).and_then(|x| x.get(f))); Ok(ResultFile { file: file.to_path_buf(), version, when: o.get("created_unix").and_then(Value::as_u64).unwrap_or(0), @@ -171,6 +180,31 @@ mod tests { assert!(argv.contains(&format!("--set=hz={}", first.settings["hz"])), "{argv}"); } + /// Three files the engine wrote in real runs on the GPU test PC (branch ap/optimizer, docs/media/optimizer/): + /// a command-line run that met its goal, one where nothing met it, and one from the in-game overlay. + #[test] + fn reads_results_from_real_runs() { + let dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/optimize-real"); + let (all, bad) = read(&[dir]); + assert!(bad.is_empty(), "{bad:?}"); + assert_eq!(all.len(), 3); + let by = |n: &str| all.iter().find(|r| r.file.file_name().unwrap().to_string_lossy() == n).unwrap(); + let fps = by("real-result-fps.json"); + assert_eq!((fps.version, fps.met, fps.top.len(), fps.display.as_str()), (1, true, 3, "1920x1080")); + assert!(fps.goal.contains("720p at 30 fps") && fps.machine.contains("120 Hz") && fps.when > 0 && fps.note.is_empty(), "{fps:?}"); + let t = &fps.top[0]; + assert_eq!(t.settings.get("scaler"), Some(&serde_json::json!("fsr"))); + assert_eq!(t.settings.len(), 9); + assert!(t.numbers.len() == 4 && t.numbers[0].starts_with("avg ") && !t.why.is_empty(), "{t:?}"); + // every setting of every entry is one the launcher can put in a profile + for r in &all { for p in &r.top { let l = p.layer(); assert_eq!(l.engine.as_ref().map(|m| m.len()), Some(p.settings.len())); } } + let none = by("real-result-not-met.json"); + assert!(!none.met && none.top.is_empty() && none.note.starts_with("Nothing that was measured met the goal. The closest was "), "{}", none.note); + let overlay = by("real-result-overlay-applied.json"); + assert!(overlay.met && overlay.top.len() == 2); + assert_eq!(overlay.top[0].settings.get("output_res"), Some(&serde_json::json!("1600x900"))); + } + #[test] fn odd_files_are_skipped_or_read_as_far_as_they_go() { let f = Path::new("x.json"); @@ -181,7 +215,7 @@ mod tests { assert!(parse(r#"{"format": "summit-optimize", "version": "one"}"#, f).is_err()); // nothing met the goal let r = parse(r#"{"format": "summit-optimize", "version": 1, "met": false, "top": [], "closest": {"label": "x"}}"#, f).unwrap(); - assert!(!r.met && r.top.is_empty() && r.note.contains("Nothing")); + assert!(!r.met && r.top.is_empty() && r.note == "Nothing that was measured met the goal. The closest was x.", "{}", r.note); // cancelled, with an error let r = parse(r#"{"format": "summit-optimize", "version": 1, "cancelled": true, "error": "the game closed", "top": []}"#, f).unwrap(); assert!(r.note.contains("cancelled") && r.note.contains("the game closed")); diff --git a/crates/summit-core/tests/fixtures/optimize-real/README.md b/crates/summit-core/tests/fixtures/optimize-real/README.md new file mode 100644 index 0000000..b166ea4 --- /dev/null +++ b/crates/summit-core/tests/fixtures/optimize-real/README.md @@ -0,0 +1,2 @@ +Result files the engine's optimizer wrote in real runs on the GPU test PC, copied unchanged from branch ap/optimizer +(`docs/media/optimizer/real-result-*.json`; its report says how each was made). diff --git a/crates/summit-core/tests/fixtures/optimize-real/real-result-fps.json b/crates/summit-core/tests/fixtures/optimize-real/real-result-fps.json new file mode 100644 index 0000000..5d8b799 --- /dev/null +++ b/crates/summit-core/tests/fixtures/optimize-real/real-result-fps.json @@ -0,0 +1,370 @@ +{ + "format": "summit-optimize", + "version": 1, + "created": "2026-11-26T07:21:42", + "created_unix": 1795674102, + "game": null, + "goal": { + "min_resolution": "1280x720", + "min_fps": 30, + "max_delay_ms": null, + "priority": "fps", + "text": "at least 720p at 30 fps; priority frame rate" + }, + "machine": { + "display_hz": 120.0, + "src_fps": 30, + "vsr": false, + "vfg": false, + "trt": false, + "max_mult": 10, + "motion_fixed": null, + "model_fixed": null, + "restarts": true, + "display": "1920x1080", + "source": "1280x720", + "text": "display 1080p at 120 Hz, game 1280x720 at 30 fps" + }, + "budget_s": 150.0, + "elapsed_s": 70.4, + "restarts": 0, + "cancelled": false, + "error": null, + "met": true, + "top": [ + { + "rank": 1, + "label": "720p, no frame generation (30 fps), AMD FSR 1, SMAA-style", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "smaa" + }, + "measured": { + "fps_avg": 60.03, + "low1": 34.36, + "frames": 301, + "dropped": 0, + "delay_ms": 6.99, + "stages": { + "capture": 0.259, + "upscale": 1.12, + "present": 2.395 + }, + "load": 0.07, + "vram_mb": 21447.0, + "engine_mb": 455.08, + "seconds": 5.01, + "took_s": 9.06, + "queue_ms": 0.1, + "settled": true + }, + "why": "The highest frame rate that held: 30 fps (1% low 34) on this 120 Hz display; then the best picture there." + }, + { + "rank": 2, + "label": "720p, no frame generation (30 fps), AMD FSR 1, FXAA", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "fxaa" + }, + "measured": { + "fps_avg": 60.01, + "low1": 37.63, + "frames": 301, + "dropped": 0, + "delay_ms": 6.86, + "stages": { + "capture": 0.176, + "upscale": 1.257, + "present": 2.577 + }, + "load": 0.08, + "vram_mb": 21445.0, + "engine_mb": 452.98, + "seconds": 5.02, + "took_s": 14.74, + "queue_ms": 0.1, + "settled": true + }, + "why": "Also passed; ranked below #1 for a plainer picture." + }, + { + "rank": 3, + "label": "720p, no frame generation (30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "measured": { + "fps_avg": 59.88, + "low1": 32.55, + "frames": 300, + "dropped": 0, + "delay_ms": 8.23, + "stages": { + "capture": 0.622, + "upscale": 1.49, + "present": 3.784 + }, + "load": 0.09, + "vram_mb": 21969.0, + "engine_mb": 169.87, + "seconds": 5.0, + "took_s": 8.03, + "queue_ms": 1.1, + "settled": true + }, + "why": "Also passed; ranked below #1 for a plainer picture." + } + ], + "closest": null, + "failures": [], + "tried": [ + { + "label": "720p, no frame generation (30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "step": "the cheapest configuration that meets the minimums", + "passed": true, + "rejected": [], + "measured": { + "fps_avg": 59.88, + "low1": 32.55, + "frames": 300, + "dropped": 0, + "delay_ms": 8.23, + "stages": { + "capture": 0.622, + "upscale": 1.49, + "present": 3.784 + }, + "load": 0.09, + "vram_mb": 21969.0, + "engine_mb": 169.87, + "seconds": 5.0, + "took_s": 8.03, + "queue_ms": 1.1, + "settled": true + } + }, + { + "label": "720p, 2x (60 fps), AMD FSR 1, Auto motion", + "settings": { + "interp": true, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "step": "a higher frame multiplier", + "passed": false, + "rejected": [ + "1% low 30 fps, needs 33 (the minimum plus 10%)" + ], + "measured": { + "fps_avg": 60.08, + "low1": 29.85, + "frames": 301, + "dropped": 0, + "delay_ms": 27.58, + "stages": { + "capture": 1.415, + "interp": 6.591, + "upscale": 1.698, + "present": 4.578 + }, + "load": 0.3, + "vram_mb": 22239.0, + "engine_mb": 450.89, + "seconds": 5.02, + "took_s": 11.57, + "queue_ms": 8.5, + "settled": true + } + }, + { + "label": "900p, no frame generation (30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1600x900", + "aa": "off" + }, + "step": "output resolution up to the display's", + "passed": false, + "rejected": [ + "1% low 22 fps, needs 29", + "frames were still queuing after the warm-up (95th percentile 4903 ms): the pipeline didn't catch up" + ], + "measured": { + "fps_avg": 42.34, + "low1": 21.75, + "frames": 212, + "dropped": 0, + "delay_ms": 730.46, + "stages": { + "capture": 1403.581, + "upscale": 12.602, + "present": 4.232 + }, + "load": 0.53, + "vram_mb": 22239.0, + "engine_mb": 450.89, + "seconds": 5.01, + "took_s": 27.02, + "queue_ms": 4902.9, + "settled": false + } + }, + { + "label": "720p, no frame generation (30 fps), AMD FSR 1, FXAA", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "fxaa" + }, + "step": "anti-aliasing", + "passed": true, + "rejected": [], + "measured": { + "fps_avg": 60.01, + "low1": 37.63, + "frames": 301, + "dropped": 0, + "delay_ms": 6.86, + "stages": { + "capture": 0.176, + "upscale": 1.257, + "present": 2.577 + }, + "load": 0.08, + "vram_mb": 21445.0, + "engine_mb": 452.98, + "seconds": 5.02, + "took_s": 14.74, + "queue_ms": 0.1, + "settled": true + } + }, + { + "label": "720p, no frame generation (30 fps), AMD FSR 1, SMAA-style", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "smaa" + }, + "step": "anti-aliasing", + "passed": true, + "rejected": [], + "measured": { + "fps_avg": 60.03, + "low1": 34.36, + "frames": 301, + "dropped": 0, + "delay_ms": 6.99, + "stages": { + "capture": 0.259, + "upscale": 1.12, + "present": 2.395 + }, + "load": 0.07, + "vram_mb": 21447.0, + "engine_mb": 455.08, + "seconds": 5.01, + "took_s": 9.06, + "queue_ms": 0.1, + "settled": true + } + } + ], + "skipped": [ + { + "label": "900p, no frame generation (30 fps), AMD FSR 1, SMAA-style", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "auto", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1600x900", + "aa": "smaa" + }, + "why": "supersampling (bigger than the display)", + "reason": "at least as heavy as 900p, no frame generation (30 fps), AMD FSR 1, which failed" + } + ], + "quality_ranking": [ + "Output resolution, up to the display's own size: a smaller picture is stretched to the screen and looks softer.", + "Upscaler: NVIDIA RTX VSR (a higher level first) above AMD FSR 1.", + "Motion detail: Full above Half (Half is a little softer on small, fast details).", + "Anti-aliasing: SMAA-style above FXAA above Off.", + "Supersampling: an output bigger than the display, shrunk to it." + ], + "not_ranked": "Not ranked: the AI engine (TensorRT and PyTorch draw the same frames), the interpolation model (NVIDIA's licence doesn't allow comparing VFG with RIFE), FSR sharpening and CAS (taste: kept as you set them), and Bilinear or no upscaler (FSR 1 costs about 0.1 ms and looks better, so they aren't tried).", + "rules": { + "headroom": 1.1, + "drop_limit": 0.005, + "avg_share": 0.95, + "at_target": 0.97, + "load_limit": 0.909, + "warm_s": 2.0, + "warm_restart_s": 5.0, + "measure_s": 5.0 + }, + "notes": [ + "Summit changes only its own settings (frame generation, upscaling, anti-aliasing). It can't change the game's own graphics options." + ] +} \ No newline at end of file diff --git a/crates/summit-core/tests/fixtures/optimize-real/real-result-not-met.json b/crates/summit-core/tests/fixtures/optimize-real/real-result-not-met.json new file mode 100644 index 0000000..20cbd1f --- /dev/null +++ b/crates/summit-core/tests/fixtures/optimize-real/real-result-not-met.json @@ -0,0 +1,143 @@ +{ + "format": "summit-optimize", + "version": 1, + "created": "2026-11-26T07:11:27", + "created_unix": 1795673487, + "game": null, + "goal": { + "min_resolution": "1280x720", + "min_fps": 60, + "max_delay_ms": null, + "priority": "quality", + "text": "at least 720p at 60 fps; priority quality" + }, + "machine": { + "display_hz": 120.0, + "src_fps": 30, + "vsr": false, + "vfg": false, + "trt": false, + "max_mult": 10, + "motion_fixed": null, + "model_fixed": null, + "restarts": true, + "display": "1920x1080", + "source": "1280x720", + "text": "display 1080p at 120 Hz, game 1280x720 at 30 fps" + }, + "budget_s": 120.0, + "elapsed_s": 13.2, + "restarts": 0, + "cancelled": false, + "error": null, + "met": false, + "top": [], + "closest": { + "label": "720p, 2x (60 fps), AMD FSR 1, Half motion", + "settings": { + "interp": true, + "hz": 60, + "model": "4.22.lite", + "motion": "half", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "measured": { + "fps_avg": 60.14, + "low1": 36.89, + "frames": 301, + "dropped": 0, + "delay_ms": 20.7, + "stages": { + "capture": 0.16, + "interp": 4.429, + "upscale": 1.043, + "present": 2.313 + }, + "load": 0.2, + "vram_mb": 22789.0, + "engine_mb": 299.89, + "seconds": 5.01, + "took_s": 13.16, + "queue_ms": 0.2, + "settled": true + } + }, + "failures": [ + { + "requirement": "low1", + "need": 58.2, + "got": 36.9, + "unit": "fps", + "text": "1% low 37 fps, needs 58", + "short_by": 21.3, + "short_pct": 36.6 + } + ], + "tried": [ + { + "label": "720p, 2x (60 fps), AMD FSR 1, Half motion", + "settings": { + "interp": true, + "hz": 60, + "model": "4.22.lite", + "motion": "half", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "step": "the cheapest configuration that meets the minimums", + "passed": false, + "rejected": [ + "1% low 37 fps, needs 58" + ], + "measured": { + "fps_avg": 60.14, + "low1": 36.89, + "frames": 301, + "dropped": 0, + "delay_ms": 20.7, + "stages": { + "capture": 0.16, + "interp": 4.429, + "upscale": 1.043, + "present": 2.313 + }, + "load": 0.2, + "vram_mb": 22789.0, + "engine_mb": 299.89, + "seconds": 5.01, + "took_s": 13.16, + "queue_ms": 0.2, + "settled": true + } + } + ], + "skipped": [], + "quality_ranking": [ + "Output resolution, up to the display's own size: a smaller picture is stretched to the screen and looks softer.", + "Upscaler: NVIDIA RTX VSR (a higher level first) above AMD FSR 1.", + "Motion detail: Full above Half (Half is a little softer on small, fast details).", + "Anti-aliasing: SMAA-style above FXAA above Off.", + "Supersampling: an output bigger than the display, shrunk to it." + ], + "not_ranked": "Not ranked: the AI engine (TensorRT and PyTorch draw the same frames), the interpolation model (NVIDIA's licence doesn't allow comparing VFG with RIFE), FSR sharpening and CAS (taste: kept as you set them), and Bilinear or no upscaler (FSR 1 costs about 0.1 ms and looks better, so they aren't tried).", + "rules": { + "headroom": 1.1, + "drop_limit": 0.005, + "avg_share": 0.95, + "at_target": 0.97, + "load_limit": 0.909, + "warm_s": 2.0, + "warm_restart_s": 5.0, + "measure_s": 5.0 + }, + "notes": [ + "Summit changes only its own settings (frame generation, upscaling, anti-aliasing). It can't change the game's own graphics options." + ] +} \ No newline at end of file diff --git a/crates/summit-core/tests/fixtures/optimize-real/real-result-overlay-applied.json b/crates/summit-core/tests/fixtures/optimize-real/real-result-overlay-applied.json new file mode 100644 index 0000000..fb756cd --- /dev/null +++ b/crates/summit-core/tests/fixtures/optimize-real/real-result-overlay-applied.json @@ -0,0 +1,280 @@ +{ + "format": "summit-optimize", + "version": 1, + "created": "2026-11-26T07:33:15", + "created_unix": 1795674795, + "game": null, + "goal": { + "min_resolution": "1280x720", + "min_fps": 30, + "max_delay_ms": null, + "priority": "quality", + "text": "at least 720p at 30 fps; priority quality" + }, + "machine": { + "display_hz": 120.0, + "src_fps": 30, + "vsr": false, + "vfg": false, + "trt": false, + "max_mult": 10, + "motion_fixed": null, + "model_fixed": null, + "restarts": true, + "display": "1920x1080", + "source": "1280x720", + "text": "display 1080p at 120 Hz, game 1280x720 at 30 fps" + }, + "budget_s": 60.0, + "elapsed_s": 70.1, + "restarts": 0, + "cancelled": false, + "error": null, + "met": true, + "top": [ + { + "rank": 1, + "label": "900p, no frame generation (the game's 30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "full", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1600x900", + "aa": "off" + }, + "measured": { + "fps_avg": 59.9, + "low1": 45.76, + "frames": 300, + "dropped": 0, + "delay_ms": 29.9, + "stages": { + "capture": 15.643, + "upscale": 7.489, + "present": 2.193 + }, + "load": 0.45, + "vram_mb": 21443.0, + "engine_mb": 450.89, + "seconds": 5.01, + "took_s": 8.02, + "queue_ms": 22.2, + "settled": true + }, + "why": "The best picture by the ranking that held the minimums (1% low 46 fps)." + }, + { + "rank": 2, + "label": "720p, no frame generation (the game's 30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "full", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "measured": { + "fps_avg": 60.02, + "low1": 47.82, + "frames": 300, + "dropped": 0, + "delay_ms": 5.02, + "stages": { + "capture": 0.107, + "upscale": 1.154, + "present": 2.89 + }, + "load": 0.07, + "vram_mb": 21443.0, + "engine_mb": 450.89, + "seconds": 5.0, + "took_s": 8.02, + "queue_ms": 0.1, + "settled": true + }, + "why": "Also passed; ranked below #1 for a plainer picture." + } + ], + "closest": null, + "failures": [], + "tried": [ + { + "label": "720p, no frame generation (the game's 30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "full", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1280x720", + "aa": "off" + }, + "step": "the cheapest configuration that meets the minimums", + "passed": true, + "rejected": [], + "measured": { + "fps_avg": 60.02, + "low1": 47.82, + "frames": 300, + "dropped": 0, + "delay_ms": 5.02, + "stages": { + "capture": 0.107, + "upscale": 1.154, + "present": 2.89 + }, + "load": 0.07, + "vram_mb": 21443.0, + "engine_mb": 450.89, + "seconds": 5.0, + "took_s": 8.02, + "queue_ms": 0.1, + "settled": true + } + }, + { + "label": "900p, no frame generation (the game's 30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "full", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1600x900", + "aa": "off" + }, + "step": "output resolution up to the display's", + "passed": true, + "rejected": [], + "measured": { + "fps_avg": 59.9, + "low1": 45.76, + "frames": 300, + "dropped": 0, + "delay_ms": 29.9, + "stages": { + "capture": 15.643, + "upscale": 7.489, + "present": 2.193 + }, + "load": 0.45, + "vram_mb": 21443.0, + "engine_mb": 450.89, + "seconds": 5.01, + "took_s": 8.02, + "queue_ms": 22.2, + "settled": true + } + }, + { + "label": "1080p, no frame generation (the game's 30 fps), AMD FSR 1", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "full", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1920x1080", + "aa": "off" + }, + "step": "output resolution up to the display's", + "passed": false, + "rejected": [ + "frames were still queuing after the warm-up (95th percentile 1024 ms): the pipeline didn't catch up" + ], + "measured": { + "fps_avg": 58.07, + "low1": 40.03, + "frames": 291, + "dropped": 0, + "delay_ms": 964.0, + "stages": { + "capture": 944.55, + "upscale": 10.51, + "present": 2.475 + }, + "load": 0.61, + "vram_mb": 21443.0, + "engine_mb": 450.89, + "seconds": 5.01, + "took_s": 27.02, + "queue_ms": 1024.4, + "settled": false + } + }, + { + "label": "900p, no frame generation (the game's 30 fps), AMD FSR 1, FXAA", + "settings": { + "interp": false, + "hz": 60, + "model": "4.22.lite", + "motion": "full", + "engine": "auto", + "scaler": "fsr", + "vsr_quality": 2, + "output_res": "1600x900", + "aa": "fxaa" + }, + "step": "anti-aliasing", + "passed": false, + "rejected": [ + "frames were still queuing after the warm-up (95th percentile 6940 ms): the pipeline didn't catch up" + ], + "measured": { + "fps_avg": 43.55, + "low1": 29.68, + "frames": 218, + "dropped": 0, + "delay_ms": 6447.11, + "stages": { + "capture": 6381.425, + "upscale": 10.772, + "present": 2.526 + }, + "load": 0.47, + "vram_mb": 21543.0, + "engine_mb": 452.98, + "seconds": 5.01, + "took_s": 27.03, + "queue_ms": 6940.3, + "settled": false + } + } + ], + "skipped": [], + "quality_ranking": [ + "Output resolution, up to the display's own size: a smaller picture is stretched to the screen and looks softer.", + "Upscaler: NVIDIA RTX VSR (a higher level first) above AMD FSR 1.", + "Motion detail: Full above Half (Half is a little softer on small, fast details).", + "Anti-aliasing: SMAA-style above FXAA above Off.", + "Supersampling: an output bigger than the display, shrunk to it." + ], + "not_ranked": "Not ranked: the AI engine (TensorRT and PyTorch draw the same frames), the interpolation model (NVIDIA's licence doesn't allow comparing VFG with RIFE), FSR sharpening and CAS (taste: kept as you set them), and Bilinear or no upscaler (FSR 1 costs about 0.1 ms and looks better, so they aren't tried).", + "rules": { + "headroom": 1.1, + "drop_limit": 0.005, + "avg_share": 0.95, + "at_target": 0.97, + "load_limit": 0.909, + "warm_s": 2.0, + "warm_restart_s": 5.0, + "measure_s": 5.0 + }, + "notes": [ + "Summit changes only its own settings (frame generation, upscaling, anti-aliasing). It can't change the game's own graphics options." + ] +} \ No newline at end of file diff --git a/crates/summit-gui/src/profiles.rs b/crates/summit-gui/src/profiles.rs index 7a454ad..ec7a64a 100644 --- a/crates/summit-gui/src/profiles.rs +++ b/crates/summit-gui/src/profiles.rs @@ -122,7 +122,7 @@ impl Cx<'_> { /// The optimizer's results: an action for each measured configuration, or what there is instead. fn results(&self, v: &mut Vec<(Act, Line)>) { - v.push((Act::None, Line { tag: "Experimental".into(), ..head("BENCHMARK RESULTS") })); + v.push((Act::None, head("BENCHMARK RESULTS"))); if self.results.is_empty() { v.push((Act::None, note(format!("No results yet. The engine's optimizer (--optimize, or Optimize in the in-game overlay) measures settings while a game runs and writes its best three to {}; a result found there can be applied here.", self.results_dir)))); } @@ -140,7 +140,7 @@ impl Cx<'_> { } for (f, why) in self.unread { v.push((Act::None, note(format!("{f} is not read: {why}")))); } if !self.results.is_empty() { - v.push((Act::None, note("Read from the engine's result files as they are. Experimental: the reader was written against the engine's format with a test file, not checked against a result from a real run."))); + v.push((Act::None, note("Read from the engine's result files as they are. A result is what was measured in that run, on that screen; use it as a starting point."))); } } @@ -816,7 +816,7 @@ mod tests { assert!(items.iter().any(|(a, l)| *a == Act::NewGames(Ref::Default) && !l.enabled && l.tag == "In use")); assert_eq!(acts(&items)[0], Act::OpenSettings); // no results: a clear line, marked Experimental - assert!(items.iter().any(|(_, l)| l.kind == 0 && l.label == "BENCHMARK RESULTS" && l.tag == "Experimental")); + assert!(items.iter().any(|(_, l)| l.kind == 0 && l.label == "BENCHMARK RESULTS")); assert!(items.iter().any(|(_, l)| l.kind == 1 && l.label.starts_with("No results yet."))); // screens that cannot be listed: said, nothing made up let c2 = Cx { outs: Err("no display"), ..cx(&s, &g, &saved, &outs) };