Commit Graph

1 Commits

Author SHA1 Message Date
00698e1e84 d3d12: the runtime takes trustno1-coder/VIctory-NVIDIA b190242 (CGBJ's renderer, DLSS, frame generation, F1 menu)
Upstream's four commits past 6a31e43 (5b36758, 9e7ab9d, 6395727, b190242;
GPL-3.0), brought in as a three-way merge: upstream's trees before and after
written under Leonida's names (crates leonida-*, LEONIDA_* settings) and the
difference merged onto Leonida's own changes. What comes with it, by its
authors:
- the renderer of codec-d/cool_fox f4b48ad (CGBJ) with trustno1-coder's NVIDIA
  fixes on top (residency.rs, stretch.rs, the title's upscale dispatch);
- DLSS for the title's upscale, from avatarmanz/VIctory-7900XTX pull request
  203 (feature dlss, LEONIDA_UPSCALE=dlss): the game renders its own 720p and
  DLSS takes it to 1080p on the Series S profile;
- DLSS frame generation through NVIDIA Streamline (streamline.rs, fg.rs), an
  F1 settings menu (host/menu.rs), LEONIDA_FPS_CAP, real ray tracing as an
  option (LEONIDA_BVH_BUILDER=1: the structure builder runs on NVIDIA).
NVIDIA's own files (DLSS, Streamline) are not part of the repository:
d3d12/Get-NVIDIA-DLSS.cmd fetches them from NVIDIA's GitHub into
d3d12/nvidia-sdk/ (git-ignored).

Where both sides had changed the same lines:
- compose.rs is upstream's (planes drawn by a pixel shader into the back
  buffer); Leonida's LEONIDA_SHARPEN lived in the compute pass it replaces
  and is not in this commit (DLSS has its own sharpness setting).
- draw.rs keeps Leonida's slow-beat texture re-check (300 frames by default);
  upstream's switch of the same name is dropped.
- ambient.rs keeps LEONIDA_AMBIENT_MOST and the reflection guard.
- play-nvidia.ps1 is upstream's with Leonida's defaults put back while rays
  are off: strict indirect batches (INDIRECT_BATCH=1), the light stand-in
  (AMBIENT=0.8, AMBIENT_MOST=2), ray walks ended at the root and the
  ray-resolve skip list. With upstream's defaults (stand-in off, no skip
  list) shade was black and the sky white in the world, and the card worked
  33-50 ms a frame (run n1).
- scripts/play-d3d12.ps1 follows the new launcher: DLSS by default, a shader
  cache of its own (cache-2), -NoDlss, -RayTracing, -Capture, -Log.

Builds with and without the dlss feature (cargo build --profile diag
-p leonida --features diagnostics[,dlss]). In the world on an RTX 4060 Ti 16 GB
(driver as installed) and a Ryzen 5 7600X: DLSS starts (1280x720 to
1920x1080), about 14 fps where it was 13.4. The picture is not right yet: a
posterized look in run n2 is being traced. AI-assisted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-26 21:48:18 -05:00