Add an opt-in switch to skip no-hit ray passes #3269

Open
github-bot wants to merge 1 commit from github-bot/gh-3269 into main AGit
Owner

@⁠ubiquitarianism on GitHub · 2026-12-03 00:26 UTC · original
ProjectLeonida:codex/skip-no-hit-ray-passes → main · +89 −0 · 4 files · 1 commits · open

Claimed in the coordination issue as D3D12-SKIP-NO-HIT-RAY-PASSES.

What and why

A player reported avoiding a recurring 0x887A0005 device removal by setting LEONIDA_RT_RESOLVE=0 and LEONIDA_ACTIVATE_RAYS=0 on an RT-off run. -SkipNoHitRayPasses exposes the pair through the Windows launcher.

The switch applies after launch options and saved F1 settings are resolved, when hardware RT and the software BVH builder are both off. Explicit -More entries keep their normal precedence. F1 Save and Restart replays the switch and reevaluates the RT settings. The default launch stays as before. The running guide shows the equivalent -More entries and the observed rendering artifacts.

Tested

  • Red on d5b30be1. The public launcher rejected the new switch. Green on ab10546e in PowerShell 5.1 and 7.
  • The synthetic test checks defaults, opt-in, hardware RT, software RT, -More precedence, and replay after turning hardware RT on and off in the saved F1 file.
  • 11 Windows launcher tests, 16 F1 tests, 35 game-gate tests, and 59 documentation tests passed. The tracked-file clean-room scan and git diff --check passed.

GPUs tested: n/a. Verification used synthetic Windows fixtures. The effect on the reported in-game crash remains unverified.

AI-assisted: OpenAI Codex GPT-6.2 Sol for implementation and a separate GPT-6.2 Sol read-only review.

Checklist

  • Based on current main.
  • One topic.
  • Clean-room scan passed.
**@⁠ubiquitarianism** on GitHub · 2026-12-03 00:26 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269) `ProjectLeonida:codex/skip-no-hit-ray-passes` → `main` · +89 −0 · 4 files · 1 commits · open Claimed in the coordination issue as [D3D12-SKIP-NO-HIT-RAY-PASSES](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570). ### What and why A player reported avoiding a recurring `0x887A0005` device removal by setting `LEONIDA_RT_RESOLVE=0` and `LEONIDA_ACTIVATE_RAYS=0` on an RT-off run. `-SkipNoHitRayPasses` exposes the pair through the Windows launcher. The switch applies after launch options and saved F1 settings are resolved, when hardware RT and the software BVH builder are both off. Explicit `-More` entries keep their normal precedence. F1 Save and Restart replays the switch and reevaluates the RT settings. The default launch stays as before. The running guide shows the equivalent `-More` entries and the observed rendering artifacts. ### Tested - Red on `d5b30be1`. The public launcher rejected the new switch. Green on `ab10546e` in PowerShell 5.1 and 7. - The synthetic test checks defaults, opt-in, hardware RT, software RT, `-More` precedence, and replay after turning hardware RT on and off in the saved F1 file. - 11 Windows launcher tests, 16 F1 tests, 35 game-gate tests, and 59 documentation tests passed. The tracked-file clean-room scan and `git diff --check` passed. GPUs tested: n/a. Verification used synthetic Windows fixtures. The effect on the reported in-game crash remains unverified. AI-assisted: OpenAI Codex GPT-6.2 Sol for implementation and a separate GPT-6.2 Sol read-only review. ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] Clean-room scan passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 00:32:11 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 00:33 UTC · original · reviewed

Independent check of ab10546e on main at d5b30be1. I enabled the focused test in a disposable copy for Linux PowerShell 7.7.0. It fails on main because the public wrapper does not recognize -SkipNoHitRayPasses and passes on this head through the real wrapper and F1 replay. The combined focused/doctest run passed 28 tests.

Merge-order checks: #3230 (36f5ddbd) conflicts only in adjacent help text in play-nvidia.ps1 and where both methods are added to tests/test_win_launchers.py. Keeping both help entries and both complete tests resolved it locally. Seven launcher tests passed, with five Windows-only skips. The combined tree with #3263 (9c2e340b) is conflict-free. Its three launcher, Cargo and game-gate suites passed 46 tests with seven Windows-only skips. These were synthetic checks. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-03 00:33 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#pullrequestreview-6161595537) · **reviewed** Independent check of `ab10546e` on `main` at `d5b30be1`. I enabled the focused test in a disposable copy for Linux PowerShell 7.7.0. It fails on main because the public wrapper does not recognize `-SkipNoHitRayPasses` and passes on this head through the real wrapper and F1 replay. The combined focused/doctest run passed 28 tests. Merge-order checks: #3230 (`36f5ddbd`) conflicts only in adjacent help text in `play-nvidia.ps1` and where both methods are added to `tests/test_win_launchers.py`. Keeping both help entries and both complete tests resolved it locally. Seven launcher tests passed, with five Windows-only skips. The combined tree with #3263 (`9c2e340b`) is conflict-free. Its three launcher, Cargo and game-gate suites passed 46 tests with seven Windows-only skips. These were synthetic checks. AI-assisted.
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 01:07 UTC · original

After #3230 merged, I resolved the two conflicts locally with ab10546e on current main (1a163523). The resolution keeps #3230's complete help entry, appends the skip-switch entry, and keeps both full test methods. Seven launcher tests passed in PowerShell 7.4.21 on Linux, with five Windows-only skips.

I also ran five synthetic dry runs with -SkipNoHitRayPasses on every invocation. RT off kept automatic frame generation at 2x and disabled the two ray passes. Hardware and software RT both suppressed automatic frame generation. With explicit frame generation and hardware RT on Series X, 16 GB left frame generation off and 24 GB kept it on. The hardware RT cases kept both ray passes enabled. These are launcher checks with stubbed GPU and VRAM queries. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-03 01:07 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7363983225) After #3230 merged, I resolved the two conflicts locally with `ab10546e` on current `main` (`1a163523`). The resolution keeps #3230's complete help entry, appends the skip-switch entry, and keeps both full test methods. Seven launcher tests passed in PowerShell 7.4.21 on Linux, with five Windows-only skips. I also ran five synthetic dry runs with `-SkipNoHitRayPasses` on every invocation. RT off kept automatic frame generation at 2x and disabled the two ray passes. Hardware and software RT both suppressed automatic frame generation. With explicit frame generation and hardware RT on Series X, 16 GB left frame generation off and 24 GB kept it on. The hardware RT cases kept both ray passes enabled. These are launcher checks with stubbed GPU and VRAM queries. AI-assisted.
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 02:11 UTC · original

I started the rebase and stopped it — the conflict is real, and here is exactly where

The script half is mechanical and I had it resolved: play-nvidia.ps1 line 41, main wrapped the -RayTracing sentence over two lines and this branch adds -SkipNoHitRayPasses after it — "keep both" and the two intents fit in four lines.

The test half is not. tests/test_win_launchers.py conflicts in two blocks, and the first is the shape I have learned to stop at:

L194  <<<<<<< HEAD
L195      @unittest.skipUnless(POWERSHELL, "requires PowerShell")
L196      def test_nvidia_frame_generation_with_ray_tracing(self) -> None:      ← main's test
L200          with tempfile.TemporaryDirectory() as td:
L202              scripts = root / "scripts"
...
L212  =======
L213      @unittest.skipUnless(os.name == "nt" and POWERSHELL, "requires Windows PowerShell")
L214      def test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart(self) -> None:
L215          with tempfile.TemporaryDirectory() as td:
L217              launcher = root / "scripts" / "play-d3d12.ps1"
...
L229  >>>>>>> ab10546ec (Add opt-in switch to skip no-hit ray passes)
L230              command = r"""
L231  $ErrorActionPreference = 'Stop'

Two different test functions collided inside the same scaffold, and both bodies begin with tempfile.TemporaryDirectory() as td: — git cut them together and left the shared command = r"""…""" block below the markers, belonging to whichever one it was written for.

So "keep both" is not a resolution here: the two tests set up the same synthetic title differently (root / "scripts" / NVIDIA_LAUNCHER.name against root / "scripts" / "play-d3d12.ps1" plus root / "d3d12" / "scripts" / NVIDIA_LAUNCHER.name), and the block after the markers has to be duplicated, extended or rewritten depending on which test it serves. That is a decision about this branch's own test, and the branch is the only place that knows it.

What I verified before stopping:

  • main has test_nvidia_frame_generation_with_ray_tracing once and test_skip_no_hit zero times — so there is no duplication to remove; both tests are wanted.
  • This branch's own test is complete in its file (test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart, with os.name == "nt" in its skip condition, unlike main's).

And the resolved script hunk, for whoever does it: keep main's two-line -RayTracing sentence, and put the branch's -SkipNoHitRayPasses line straight after it. That I could do and did; the test I could not, and I would rather hand back a half with a reason than a merge that renders one of the two tests unchecked.

The #3192 and #3214 notes stand — this one is the third of the five new conflicts, and the first that is not mechanical.

**@⁠fiestorra** on GitHub · 2026-12-03 02:11 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7365186807) ## I started the rebase and stopped it — the conflict is real, and here is exactly where **The script half is mechanical and I had it resolved**: **`play-nvidia.ps1` line 41**, **`main` wrapped the `-RayTracing` sentence over two lines and this branch adds `-SkipNoHitRayPasses` after it** — **"keep both" and the two intents fit in four lines.** **The test half is not.** **`tests/test_win_launchers.py` conflicts in *two* blocks, and the first is the shape I have learned to stop at**: ``` L194 <<<<<<< HEAD L195 @unittest.skipUnless(POWERSHELL, "requires PowerShell") L196 def test_nvidia_frame_generation_with_ray_tracing(self) -> None: ← main's test L200 with tempfile.TemporaryDirectory() as td: L202 scripts = root / "scripts" ... L212 ======= L213 @unittest.skipUnless(os.name == "nt" and POWERSHELL, "requires Windows PowerShell") L214 def test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart(self) -> None: L215 with tempfile.TemporaryDirectory() as td: L217 launcher = root / "scripts" / "play-d3d12.ps1" ... L229 >>>>>>> ab10546ec (Add opt-in switch to skip no-hit ray passes) L230 command = r""" L231 $ErrorActionPreference = 'Stop' ``` **Two different test functions collided inside the same scaffold, and both bodies begin `with tempfile.TemporaryDirectory() as td:`** — **git cut them together and left the shared `command = r"""…"""` block below the markers, belonging to whichever one it was written for.** **So "keep both" is not a resolution here**: **the two tests set up the same synthetic title differently** (`root / "scripts" / NVIDIA_LAUNCHER.name` against `root / "scripts" / "play-d3d12.ps1"` plus `root / "d3d12" / "scripts" / NVIDIA_LAUNCHER.name`), **and the block after the markers has to be duplicated, extended or rewritten depending on which test it serves.** **That is a decision about this branch's own test, and the branch is the only place that knows it.** **What I verified before stopping**: - **`main` has `test_nvidia_frame_generation_with_ray_tracing` once and `test_skip_no_hit` zero times** — **so there is no duplication to remove; both tests are wanted.** - **This branch's own test is complete in its file** (`test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart`, **with `os.name == "nt"` in its skip condition, unlike main's**). **And the resolved script hunk, for whoever does it**: **keep `main`'s two-line `-RayTracing` sentence, and put the branch's `-SkipNoHitRayPasses` line straight after it.** **That I could do and did; the test I could not, and I would rather hand back a half with a reason than a merge that renders one of the two tests unchecked.** **The `#3192` and `#3214` notes stand** — **this one is the third of the five new conflicts, and the first that is not mechanical.**
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 02:15 UTC · original

Second attempt, and it failed — so there is no branch from me for this one, and here is what went wrong

After my first pass I thought the test conflict was reconstructible (two self-contained functions that happened to start at the same line, main's 88 lines and this branch's 59). I built that, and then the script half, and the result was wrong:

rebase completed: 799482c60, 4 files changed, 92 insertions(+)
python tests/test_win_launchers.py   Ran 12 tests — FAILED (failures=13, errors=1)
d3d12/scripts/play-nvidia.ps1        one conflict marker left at L43:  =======

I aborted it and deleted the local branch. Nothing was pushed — git ls-remote --heads fork pr-3269-rebased returns nothing — so there is no half-merged branch of mine sitting in the fork for someone to pick up by mistake.

Why it went wrong, since the reason matters more than the failure: my script resolution assumed the conflict in play-nvidia.ps1 was one block — main's two-line -RayTracing sentence plus this branch's -SkipNoHitRayPasses line — and it was not: there is a second block, and the ======= left at L43 is the seam between them. I resolved the one I had looked at and trusted the marker count from before the edit rather than after it.

And the test resolution may have been right while the script was wrong — 12 tests ran and 13 failed, which is what a script with a stray ======= does: every test that starts PowerShell gets a parse error, not an assertion.

So the state is: this pull request still needs its author, and I have nothing to hand over. The two things I did produce and do trust are in the comment above — the shape of the script conflict (main's sentence, then the switch line) and the fact that the test conflict is two self-contained functions, which means the reboot is small once someone knows both blocks exist. The mistake was mine, and it was the same one as the #3209 hunk count an hour ago: I measured a conflict once and acted twice.

**@⁠fiestorra** on GitHub · 2026-12-03 02:15 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7365254560) ## Second attempt, and it failed — so there is no branch from me for this one, and here is what went wrong **After my first pass I thought the test conflict was reconstructible** (two self-contained functions that happened to start at the same line, `main`'s 88 lines and this branch's 59). **I built that, and then the script half, and the result was wrong**: ``` rebase completed: 799482c60, 4 files changed, 92 insertions(+) python tests/test_win_launchers.py Ran 12 tests — FAILED (failures=13, errors=1) d3d12/scripts/play-nvidia.ps1 one conflict marker left at L43: ======= ``` **I aborted it and deleted the local branch.** **Nothing was pushed** — `git ls-remote --heads fork pr-3269-rebased` returns nothing — **so there is no half-merged branch of mine sitting in the fork for someone to pick up by mistake.** **Why it went wrong, since the reason matters more than the failure**: **my script resolution assumed the conflict in `play-nvidia.ps1` was one block** — **`main`'s two-line `-RayTracing` sentence plus this branch's `-SkipNoHitRayPasses` line** — **and it was not**: **there is a second block, and the `=======` left at L43 is the seam between them.** **I resolved the one I had looked at and trusted the marker count from before the edit rather than after it.** **And the test resolution may have been right while the script was wrong** — **12 tests ran and 13 failed, which is what a script with a stray `=======` does: every test that starts PowerShell gets a parse error, not an assertion.** **So the state is: this pull request still needs its author, and I have nothing to hand over.** **The two things I did produce and do trust are in the comment above** — **the shape of the script conflict (`main`'s sentence, then the switch line) and the fact that the test conflict is two self-contained functions**, **which means the reboot is small once someone knows both blocks exist.** **The mistake was mine, and it was the same one as the `#3209` hunk count an hour ago: I measured a conflict once and acted twice.**
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 06:36 UTC · original

#3269 rebasado y empujado: el que dejé a medias hace dos horas, ahora aplicado entero

Cuando lo intenté antes, aborté y publiqué sólo «la mitad del script», porque el rebase dejó un ======= suelto y 13 tests en rojo. El fallo fue resolver un bloque y fiarme del conteo de marcadores que había tomado antes de editar — una de mis trampas favoritas, y volvió a morder.

Ahora, con el rango y midiendo después de cada edición:

cherry-pick del rango sobre d9b618f10
  CONFLICT en d3d12/scripts/play-nvidia.ps1 y tests/test_win_launchers.py

play-nvidia.ps1   el comentario que `main` partió en dos líneas + la línea del switch del PR
tests/test_win_launchers.py   el de `main` + la función de 59 líneas del PR
                     insertada antes de `test_static_quoting_and_no_pause_guards`

marcadores tras cada edición:      0 y 0
pytest tests/test_win_launchers.py    13 passed + 6 subtests
pytest tests/test_leonida_launcher.py 144 passed

Rama pr-3269-rebased, head 0c5a358ed, empujada al fork.

Y lo que la PR hace, que no había dicho en ningún comentario: -SkipNoHitRayPasses — saltar los pases de ray resolve y ray activation cuando el ray tracing está apagado, opt-in, y con su docs/running.md y su línea en play-d3d12.ps1. O sea que es de la misma familia que #3290/#3291/#3296/#3297 (interruptores opt-in de rendimiento) pero en el lanzador y no en el runtime.

Y la parte de método que quiero dejar escrita: la primera vez resolví dos bloques y dije «marcadores: 0» con el número de antes; esta vez el script recorre los bloques y comprueba el resultado al final, y la función del test se extrae del commit en vez de copiarse a mano. La diferencia entre las dos no es cuidado: es que la segunda no depende de que yo mire bien.

Y lo que falta para el merge, que es lo de siempre: #3233, #3253, #3269 son las tres que quedan del launcher, y las tres tocan tests/test_win_launchers.py. Con #3272 dentro, si estas tres entran seguidas el fichero deja de moverse.

**@⁠fiestorra** on GitHub · 2026-12-03 06:36 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7370018056) ## `#3269` rebasado y empujado: **el que dejé a medias hace dos horas, ahora aplicado entero** **Cuando lo intenté antes, aborté y publiqué sólo «la mitad del script»**, **porque el rebase dejó un `=======` suelto y 13 tests en rojo.** **El fallo fue resolver un bloque y fiarme del conteo de marcadores que había tomado antes de editar** — **una de mis trampas favoritas, y volvió a morder.** **Ahora, con el rango y midiendo después de cada edición**: ``` cherry-pick del rango sobre d9b618f10 CONFLICT en d3d12/scripts/play-nvidia.ps1 y tests/test_win_launchers.py play-nvidia.ps1 el comentario que `main` partió en dos líneas + la línea del switch del PR tests/test_win_launchers.py el de `main` + la función de 59 líneas del PR insertada antes de `test_static_quoting_and_no_pause_guards` marcadores tras cada edición: 0 y 0 pytest tests/test_win_launchers.py 13 passed + 6 subtests pytest tests/test_leonida_launcher.py 144 passed ``` **Rama `pr-3269-rebased`, head `0c5a358ed`, empujada al fork.** **Y lo que la PR hace, que no había dicho en ningún comentario**: **`-SkipNoHitRayPasses`** — **saltar los pases de *ray resolve* y *ray activation* cuando el ray tracing está apagado**, **opt-in**, **y con su `docs/running.md` y su línea en `play-d3d12.ps1`.** **O sea que es de la misma familia que `#3290`/`#3291`/`#3296`/`#3297`** (**interruptores opt-in de rendimiento**) **pero en el lanzador y no en el runtime.** **Y la parte de método que quiero dejar escrita**: **la primera vez resolví dos bloques y dije «marcadores: 0» con el número de antes**; **esta vez el script recorre los bloques y comprueba el resultado al final, y la función del test se extrae del commit en vez de copiarse a mano.** **La diferencia entre las dos no es cuidado: es que la segunda no depende de que yo mire bien.** **Y lo que falta para el merge, que es lo de siempre**: **`#3233`, `#3253`, `#3269` son las tres que quedan del launcher, y las tres tocan `tests/test_win_launchers.py`.** **Con `#3272` dentro, si estas tres entran seguidas el fichero deja de moverse.**
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-03 07:01 UTC · original

This pull request has a merge conflict with current main (d9b618f10), so it can't be run in game or merged as it is. Could you merge the latest main into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.

AI-assisted (Claude Code).

**@⁠MoonEyes** on GitHub · 2026-12-03 07:01 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7370512126) This pull request has a merge conflict with current `main` (`d9b618f10`), so it can't be run in game or merged as it is. Could you merge the latest `main` into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head. AI-assisted (Claude Code).
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 17:30 UTC · original

Estado de esta rebasada con el main de hoy (717b90233): choca en dos ficheros y no sale con una union — hace falta leer.

rebase sobre 717b90233:  CONFLICTO en d3d12/scripts/play-nvidia.ps1 y tests/test_win_launchers.py

Lo que hay dentro del choque, para que no se repita el intento:

  • play-nvidia.ps1: dos bloques en el comentario de opciones — el de arriba añade -SkipNoHitRayPasses y el de abajo (L813) es otro que no he mirado;
  • test_win_launchers.py: dos bloques donde main ha añadido tests nuevos (test_nvidia_frame_generation_with_ray_tracing, con la condición de los 20 GB y LEONIDA_FG_WITH_RT), y los dos lados declaran funciones con cuerpo — unirlos deja un } en el aire (lo probé: SyntaxError: unmatched '}').

O sea que esta no es como #3233 o #3289 (donde bastaba poner la función del PR sobre el fichero de main): main ha crecido alrededor del mismo sitio y hay que decidir qué test se queda con qué nombre.

Lo que sí está claro y sirve: la cerré sin tocar nada — el worktree está podado, main está limpio y la PR sigue como estaba. Y #3253, que también toca el launcher, ya está limpia por sí sola con la rebasada de su autor (499088156, un commit), así que de las tres del launcher sólo queda esta por resolver.

**@⁠fiestorra** on GitHub · 2026-12-03 17:30 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7386626942) **Estado de esta rebasada con el `main` de hoy (`717b90233`): choca en dos ficheros y no sale con una union — hace falta leer.** ``` rebase sobre 717b90233: CONFLICTO en d3d12/scripts/play-nvidia.ps1 y tests/test_win_launchers.py ``` **Lo que hay dentro del choque, para que no se repita el intento**: - **`play-nvidia.ps1`**: **dos bloques en el comentario de opciones** — **el de arriba añade `-SkipNoHitRayPasses`** y **el de abajo (L813) es otro que no he mirado**; - **`test_win_launchers.py`**: **dos bloques donde `main` ha añadido tests nuevos** (`test_nvidia_frame_generation_with_ray_tracing`, **con la condición de los 20 GB y `LEONIDA_FG_WITH_RT`**), **y los dos lados declaran funciones con cuerpo — unirlos deja un `}` en el aire** (**lo probé: `SyntaxError: unmatched '}'`**). **O sea que esta no es como `#3233` o `#3289`** (**donde bastaba poner la función del PR sobre el fichero de `main`**): **`main` ha crecido alrededor del mismo sitio y hay que decidir qué test se queda con qué nombre.** **Lo que sí está claro y sirve**: **la cerré sin tocar nada** — **el worktree está podado, `main` está limpio y la PR sigue como estaba.** **Y `#3253`, que también toca el launcher, ya está limpia por sí sola con la rebasada de su autor (`499088156`, un commit)**, así que **de las tres del launcher sólo queda esta por resolver.**
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 17:31 UTC · original

El mapa de los cuatro bloques, que es lo que a mí me faltaba antes de intentarlo dos veces

Ya con el main de hoy (717b90233) la PR choca en dos ficheros y cuatro bloques:

d3d12/scripts/play-nvidia.ps1
  L41   HEAD 2 líneas del comentario de -RayTracing · suyo las mismas 2 + la nueva
        "# -SkipNoHitRayPasses  skip the ray-resolve and ray-activation passes…"
        → se resuelve añadiendo esa línea después de las de HEAD

  L817  HEAD  el foreach de $again ('Resolution', 'Lowest', 'Dlss', …)
        suyo  la misma línea precedida de "if ($SkipNoHitRayPasses) { $again += '-SkipNoHitRayPasses' }"
        → se resuelve poniendo ese if antes del foreach

tests/test_win_launchers.py
  bloque 1  HEAD 17 líneas: def test_nvidia_frame_generation_with_ray_tracing
            suyo 16 líneas: def test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart
            → son DOS tests distintos; lo que sigue al bloque es un cuerpo compartido

  bloque 2  HEAD 277 líneas: def test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_file
            suyo  38 líneas, sin `def`
            → aquí está el problema de verdad: el cuerpo de un test largo contra un trozo suyo,
              y no se puede decidir sin leer cuál de los dos es el que va con qué cabecera

Y por eso no la entrego: los dos bloques del .ps1 son mecánicos (añadir dos líneas), y los dos del test no lo son — el segundo son 277 líneas contra 38 sin cabecera, y una unión ahí no falla con un error: falla con un test que se pierde o con un } de más, que es lo que me pasó (SyntaxError: unmatched '}').

Lo que propongo, en orden: resolver los dos del .ps1 con las dos líneas (eso es media hora) y, con el test, quedarse con el de main y portar el suyo como un test nuevo aparte — que es lo que hace que no se pierda ninguno. Si el autor prefiere otra cosa, el mapa ya está aquí.

**@⁠fiestorra** on GitHub · 2026-12-03 17:31 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3269#issuecomment-7386653030) **El mapa de los cuatro bloques, que es lo que a mí me faltaba antes de intentarlo dos veces** **Ya con el `main` de hoy (`717b90233`) la PR choca en dos ficheros y cuatro bloques:** ``` d3d12/scripts/play-nvidia.ps1 L41 HEAD 2 líneas del comentario de -RayTracing · suyo las mismas 2 + la nueva "# -SkipNoHitRayPasses skip the ray-resolve and ray-activation passes…" → se resuelve añadiendo esa línea después de las de HEAD L817 HEAD el foreach de $again ('Resolution', 'Lowest', 'Dlss', …) suyo la misma línea precedida de "if ($SkipNoHitRayPasses) { $again += '-SkipNoHitRayPasses' }" → se resuelve poniendo ese if antes del foreach tests/test_win_launchers.py bloque 1 HEAD 17 líneas: def test_nvidia_frame_generation_with_ray_tracing suyo 16 líneas: def test_skip_no_hit_ray_passes_is_opt_in_and_follows_rt_on_restart → son DOS tests distintos; lo que sigue al bloque es un cuerpo compartido bloque 2 HEAD 277 líneas: def test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_file suyo 38 líneas, sin `def` → aquí está el problema de verdad: el cuerpo de un test largo contra un trozo suyo, y no se puede decidir sin leer cuál de los dos es el que va con qué cabecera ``` **Y por eso no la entrego**: **los dos bloques del `.ps1` son mecánicos** (**añadir dos líneas**), **y los dos del test no lo son** — **el segundo son 277 líneas contra 38 sin cabecera**, **y una unión ahí no falla con un error: falla con un test que se pierde o con un `}` de más, que es lo que me pasó** (**`SyntaxError: unmatched '}'`**). **Lo que propongo, en orden**: **resolver los dos del `.ps1` con las dos líneas** (**eso es media hora**) **y, con el test, quedarse con el de `main` y portar el suyo como un test nuevo aparte** — **que es lo que hace que no se pierda ninguno.** **Si el autor prefiere otra cosa, el mapa ya está aquí.**
This pull request has changes conflicting with the target branch.
  • d3d12/scripts/play-nvidia.ps1
  • tests/test_win_launchers.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3269/head:github-bot/gh-3269'
git switch 'github-bot/gh-3269'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3269'
git switch 'github-bot/gh-3269'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3269'
git switch 'github-bot/gh-3269'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3269'
git switch 'main'
git merge --squash 'github-bot/gh-3269'
git switch 'main'
git merge --ff-only 'github-bot/gh-3269'
git switch 'main'
git merge 'github-bot/gh-3269'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3269
No description provided.