4e441de6af
The slider wrote world_post.scale, but with HD on the world target's scale came from hd::scale_override(): with DLSS enabled and its SDK open it always returned Some(2/3), and prepare() takes hd_scale.unwrap_or(scale) — so the slider was never read. Moving it 50/80/100/200% changed neither the picture nor FPS; only the DLSS toggle did. Without DLSS and HORIZON_HD_SCALE the slider worked (native TAAU), which hid the bug on non-RTX machines. scale_override(slider) now reconciles the two, first match wins: film quality (full size), HORIZON_HD_SCALE (the explicit launch-time override, still read once), then the slider — with DLSS evaluating capped at the output (an upscaler renders no larger), the default 100% keeping DLSS's 2/3 auto ratio and >100% rendering at the output; without DLSS the slider applies as-is, >1 supersampling included. The decision is a pure scale_for, unit-tested on every platform (the_resolution_slider_drives_hd_scale). Live: gfx.rs decides hd_scale every frame before the jitter, and the jitter and the motion globals (hd_motion.xy) read world_post.scaled_size so they match the size this frame draws, not the previous frame's target. prepare() resizes the world target; Hd::resize -> Taa::resize resets the histories and resizes DLSS. Dlss::resize keeps the NGX context while the new render size fits its render_resolution_range (the render size rides per evaluate as partial_texture_size); recreating waits the device idle in the context's Drop, which a live slider would feel. The first evaluate after a change resets NGX (InReset), so no ghosting across scales. The #143 motion/jitter contract is untouched: MVJittered, MVLowRes, jitter in render pixels, motion_vector_scale [1,1]. Verified on macOS/Metal (no DLSS device): the lib suite (1243 passed), the new GPU test the_world_target_follows_the_resolution_slider (50/100/200% -> 960x540 / 1920x1080 / 3840x2160, live resize, hd_scale precedence) and taau_gpu_smoke_still_surface_ab. The dlss-gated code cross-checks for x86_64-pc-windows-gnu --features dlss against the NGX v310.9.1 headers; the DLSS evaluation itself awaits an RTX run. Co-Authored-By: Kimi Code <noreply@moonshot.ai>