Laptop with an RTX 4060 and a Radeon 610M: the layer chose the 512 MB iGPU by default (15,683 MB budget of shared RAM), and every run on it ended in a device removal #3034

Open
opened 2026-12-02 03:18:48 +00:00 by ffaddd-ddd · 3 comments
ffaddd-ddd commented 2026-12-02 03:18:48 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by ffaddd-ddd on 2026-12-02T03:18:48Z.


AI use: written by DeepSeek (deepseek-v4.1-flash) from the reporter's logs; every figure below is quoted from them.

Summary

On a laptop with an Intel/AMD iGPU and an RTX 4060, the layer picked the iGPU by default and ran the title on it. The iGPU is a Radeon 610M with 512 MB; it reports a 15,683 MB budget from shared system memory, so nothing in the counters looks wrong until you check the driver stamp. Every run on it ended in a device removal. With -Adapter 4060 the same build runs.

This may be worth a guard: the adapter choice is silent, and the failure it produces looks like the memory and pipeline bugs already tracked, not like a wrong-GPU problem.

How I found it

PR #2789 (driver stamp) writes cache/pipelines/host-pipelines.driver. After a run that crashed I read it:

vendor=0x1002 device=0x164e subsys=0x3c5117aa rev=0xd8 driver=9007199976685571 older=1

0x1002 is AMD, 0x164e is this machine's Radeon 610M. The two cards here:

NVIDIA GeForce RTX 4060 Laptop GPU   PCI\VEN_10DE&DEV_28E0&SUBSYS_3C5117AA&REV_A1
AMD Radeon(TM) 610M                 PCI\VEN_1002&DEV_164E&SUBSYS_3C5117AA&REV_D8

With -Adapter 4060 the same file says:

vendor=0x10de device=0x28e0 subsys=0x3c5117aa rev=0xa1 driver=9007199255791708

And the video memory line changes, which is the second tell:

on the iGPU : the card's own: budget 15683 MB, in use 56 MB
on the 4060  : the card's own: budget  7188 MB, in use 56 MB

15683 MB on an 8 GB laptop is not a real card. The iGPU's budget is shared system memory, so the layer plans against a figure no texture can fill, and every memory counter derived from it is meaningless.

What it does on the iGPU

Three runs, all -Resolution 1080 -Adapter not given:

Run Settings Outcome
1 -Resolution 1080 -FrameGen 6 device removed 0x887A0005 after 2 min 52 s
2 -Resolution 1080 -NoDlss device removed after 58 s
3 -Resolution 1080 -FrameGen 2 0x80000003 after ~15 s

From the iGPU runs' log:

ERROR leonida_gpu::host: device-removed data; page fault at 0x20328f000; no title memory copy below it;
  view heap 0x1032b2000+0x8000000: 0xf7fdd000 past its end (slot 134213248);
  sampler heap 0x10b2f2000+0x8000: 0xf7f95000 past its end (slot 260021504)

1.34e8 and 2.6e8 in heaps that hold 2,097,152 views: the descriptors are garbage. I assumed that was a shader or heap bug until the driver stamp said the card was the iGPU.

What it does on the 4060

Same build, -Adapter 4060, -Dlss quality -FrameGen 2 (Series S, 1280x720 in, 1920x1080 out):

DLSS: feature made input=(1280, 720) output=(1920, 1080) hdr=true
frame generation: state (status 0 = working) index=15000 tagged=true status=0 presented=2 per=2 max=1

The world runs. Frame generation is working (tagged=true, per=2). It still ends in 0x887A0005 eventually, which is the bug in #2821 / #3012, not this one.

Frame-time measurements on the 4060 (145 samples under 250 ms)

mean 64.2 ms = 15.6 fps     P10 35 / P50 59 / P90 99 ms   (P90/P10 = 2.8)
  preparing        31.4 ms   49%     (copies 13.0 ms, 39.8 MB a frame; textures 1.5 ms)
  GPU               0.6 ms    1%
  copying back      8.2 ms   13%

Two things worth noting for the frame-rate work:

  1. The GPU is 1% of the frame. This is the submit-thread wall README already names; at 3,005 draws a frame (P50) the copies alone are 13.0 ms.

  2. Frame generation doubles the frames but not the smoothness: P10 to P90 is 35 to 99 ms, so the shown 31 fps arrives on a 15 fps beat. I am not reporting this as a bug — it is what 2x does above a jittery render — but it is why "more frames" did not feel better here.

There are also 28 stalls of 500 ms or more (the worst 7.0 s) as pipelines are made on first sight. Those are the precompile gap, not this issue.

What I would ask for

  1. Is "Windows' default card" the right default on a hybrid laptop? play-nvidia.ps1 documents it that way ("Default: Windows' default card"), and here Windows' default was the 512 MB Radeon 610M, whose reported budget is 15,683 MB of shared system memory — larger than the 8 GB card's 7,188 MB. Whatever the layer reads to pick the default, on this machine it landed on the iGPU; a start that names the adapter it took, or a default that prefers the discrete card, would have saved three runs.

  2. Could the start say which adapter it took, one line, when more than one is present? host-pipelines.driver now answers it after a run, but a first start with no cache has nothing to read.

  3. Should a budget larger than the card's dedicated memory be refused or flagged? A 15,683 MB budget on a machine whose discrete card has 8,188 MiB is the shape of the problem; the layer built its whole memory plan on it.

Environment

CPU / RAM  AMD Ryzen 9 7945HX, 32 GB (31.2 visible)
GPU        NVIDIA GeForce RTX 4060 Laptop, 8188 MiB, driver 621.40 (32.0.16.2140)
           AMD Radeon(TM) 610M, 512 MB (the one it chose)
OS         Windows 11 23H2, build 22631.6199
Build      ProjectLeonida/mandy @ pr2789 (4cec236), leonida.exe 19.99 MB, built-with: diagnostics,dlss,mimalloc
Settings   series-s, -Dlss quality -FrameGen 2, cache_dir on D:
Cache      89,322 pipelines known; library 24.6 MB and growing
  • #2789 — the driver stamp is how I found this; without it the iGPU run looked like an ordinary memory bug.
  • #2821, #3012 — device removals on the correct card, which this is not.
  • #2907 — "stuttering with frame generation on" on an RTX 4060; may or may not be the same, they did not post the driver stamp.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6736122258 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3034). Originally posted by [ffaddd-ddd](https://github.com/ffaddd-ddd) on 2026-12-02T03:18:48Z. --- **AI use: written by DeepSeek (deepseek-v4.1-flash) from the reporter's logs; every figure below is quoted from them.** ## Summary On a laptop with an Intel/AMD iGPU and an RTX 4060, **the layer picked the iGPU by default** and ran the title on it. The iGPU is a **Radeon 610M with 512 MB**; it reports a 15,683 MB budget from shared system memory, so nothing in the counters looks wrong until you check the driver stamp. Every run on it ended in a device removal. With `-Adapter 4060` the same build runs. This may be worth a guard: the adapter choice is silent, and the failure it produces looks like the memory and pipeline bugs already tracked, not like a wrong-GPU problem. ## How I found it `PR #2789` (driver stamp) writes `cache/pipelines/host-pipelines.driver`. After a run that crashed I read it: ``` vendor=0x1002 device=0x164e subsys=0x3c5117aa rev=0xd8 driver=9007199976685571 older=1 ``` `0x1002` is AMD, `0x164e` is this machine's Radeon 610M. The two cards here: ``` NVIDIA GeForce RTX 4060 Laptop GPU PCI\VEN_10DE&DEV_28E0&SUBSYS_3C5117AA&REV_A1 AMD Radeon(TM) 610M PCI\VEN_1002&DEV_164E&SUBSYS_3C5117AA&REV_D8 ``` With `-Adapter 4060` the same file says: ``` vendor=0x10de device=0x28e0 subsys=0x3c5117aa rev=0xa1 driver=9007199255791708 ``` And the video memory line changes, which is the second tell: ``` on the iGPU : the card's own: budget 15683 MB, in use 56 MB on the 4060 : the card's own: budget 7188 MB, in use 56 MB ``` **`15683 MB` on an 8 GB laptop is not a real card.** The iGPU's budget is shared system memory, so the layer plans against a figure no texture can fill, and every memory counter derived from it is meaningless. ## What it does on the iGPU Three runs, all `-Resolution 1080 -Adapter` not given: | Run | Settings | Outcome | | --- | --- | --- | | 1 | `-Resolution 1080 -FrameGen 6` | device removed `0x887A0005` after 2 min 52 s | | 2 | `-Resolution 1080 -NoDlss` | device removed after 58 s | | 3 | `-Resolution 1080 -FrameGen 2` | `0x80000003` after ~15 s | From the iGPU runs' log: ``` ERROR leonida_gpu::host: device-removed data; page fault at 0x20328f000; no title memory copy below it; view heap 0x1032b2000+0x8000000: 0xf7fdd000 past its end (slot 134213248); sampler heap 0x10b2f2000+0x8000: 0xf7f95000 past its end (slot 260021504) ``` **`1.34e8` and `2.6e8` in heaps that hold 2,097,152 views**: the descriptors are garbage. I assumed that was a shader or heap bug until the driver stamp said the card was the iGPU. ## What it does on the 4060 Same build, `-Adapter 4060`, `-Dlss quality -FrameGen 2` (Series S, 1280x720 in, 1920x1080 out): ``` DLSS: feature made input=(1280, 720) output=(1920, 1080) hdr=true frame generation: state (status 0 = working) index=15000 tagged=true status=0 presented=2 per=2 max=1 ``` The world runs. Frame generation is working (`tagged=true`, `per=2`). It still ends in `0x887A0005` eventually, which is the bug in #2821 / #3012, not this one. ## Frame-time measurements on the 4060 (145 samples under 250 ms) ``` mean 64.2 ms = 15.6 fps P10 35 / P50 59 / P90 99 ms (P90/P10 = 2.8) preparing 31.4 ms 49% (copies 13.0 ms, 39.8 MB a frame; textures 1.5 ms) GPU 0.6 ms 1% copying back 8.2 ms 13% ``` Two things worth noting for the frame-rate work: 1. **The GPU is 1% of the frame.** This is the submit-thread wall README already names; at 3,005 draws a frame (P50) the copies alone are 13.0 ms. 2. **Frame generation doubles the frames but not the smoothness**: P10 to P90 is 35 to 99 ms, so the shown 31 fps arrives on a 15 fps beat. I am not reporting this as a bug — it is what 2x does above a jittery render — but it is why "more frames" did not feel better here. There are also 28 stalls of 500 ms or more (the worst 7.0 s) as pipelines are made on first sight. Those are the precompile gap, not this issue. ## What I would ask for 1. **Is "Windows' default card" the right default on a hybrid laptop?** `play-nvidia.ps1` documents it that way ("Default: Windows' default card"), and here Windows' default was the **512 MB Radeon 610M**, whose reported budget is 15,683 MB of shared system memory — larger than the 8 GB card's 7,188 MB. Whatever the layer reads to pick the default, on this machine it landed on the iGPU; a start that names the adapter it took, or a default that prefers the discrete card, would have saved three runs. 2. **Could the start say which adapter it took**, one line, when more than one is present? `host-pipelines.driver` now answers it after a run, but a first start with no cache has nothing to read. 3. **Should a budget larger than the card's dedicated memory be refused or flagged?** A 15,683 MB budget on a machine whose discrete card has 8,188 MiB is the shape of the problem; the layer built its whole memory plan on it. ## Environment ``` CPU / RAM AMD Ryzen 9 7945HX, 32 GB (31.2 visible) GPU NVIDIA GeForce RTX 4060 Laptop, 8188 MiB, driver 621.40 (32.0.16.2140) AMD Radeon(TM) 610M, 512 MB (the one it chose) OS Windows 11 23H2, build 22631.6199 Build ProjectLeonida/mandy @ pr2789 (4cec236), leonida.exe 19.99 MB, built-with: diagnostics,dlss,mimalloc Settings series-s, -Dlss quality -FrameGen 2, cache_dir on D: Cache 89,322 pipelines known; library 24.6 MB and growing ``` ## Related - **#2789** — the driver stamp is how I found this; without it the iGPU run looked like an ordinary memory bug. - **#2821**, **#3012** — device removals on the correct card, which this is not. - **#2907** — "stuttering with frame generation on" on an RTX 4060; may or may not be the same, they did not post the driver stamp.
lixonik commented 2026-12-02 06:59:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T06:59:21Z.


finding: source trace of why the iGPU is chosen silently by default and reports shared RAM as local budget (checked on main f37c4a87d, source-only -- no dual-GPU laptop locally).

  1. Default adapter selection (d3d12/crates/leonida-gpu/src/host.rs:1488-1499):
    When LEONIDA_ADAPTER and LEONIDA_D3D12_WARP are unset, chosen_adapter() returns None and host.rs:1496 calls D3D12CreateDevice(None, D3D_FEATURE_LEVEL_12_0, &mut device). Passing None asks DXGI for adapter 0 (Windows' default display adapter -- on hybrid AMD/NVIDIA laptops, the 512 MB iGPU unless overridden in Windows Graphics Settings), instead of querying IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE).

  2. Silent selection on the default path (host.rs:1565-1568 vs 1628-1633):
    host.rs:1565-1567 already queries the chosen IDXGIAdapter3 via EnumAdapterByLuid(device.GetAdapterLuid()), but line 1568 only logs tracing::info!("host D3D12 device ready") without the adapter name, VendorId/DeviceId, or DedicatedVideoMemory. The adapter name and DedicatedVideoMemory are currently logged only inside chosen_adapter() (host.rs:1628-1633) when LEONIDA_ADAPTER is explicitly set.

  3. Why the 512 MB iGPU logged budget 15683 MB as "the card's own" (host.rs:14350-14426):
    Host::video_memory() / log_video_memory() queries DXGI_MEMORY_SEGMENT_GROUP_LOCAL and labels it "the card's own". On UMA/integrated adapters, WDDM maps half of system RAM into DXGI_MEMORY_SEGMENT_GROUP_LOCAL even though DXGI_ADAPTER_DESC1::DedicatedVideoMemory is only 512 MB, so downstream residency/pool sizing treats shared system RAM as dedicated VRAM.

  4. Concrete fix direction:

    • When LEONIDA_ADAPTER is unset, prefer IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) (skipping DXGI_ADAPTER_FLAG_SOFTWARE), falling back to the hardware adapter with the largest DedicatedVideoMemory if IDXGIFactory6 is unavailable, and finally None. Keep LEONIDA_ADAPTER as the explicit override (allowing intentional iGPU selection).
    • Unconditionally log the chosen adapter (Description, VendorId/DeviceId, DedicatedVideoMemory, SharedSystemMemory, plus the enumerated hardware adapter list when >1 exists) right after EnumAdapterByLuid at host.rs:1568.
    • Log a prominent warning if the chosen adapter has small DedicatedVideoMemory (e.g., < 4 GiB) while a larger dedicated hardware adapter is present, or if DXGI_MEMORY_SEGMENT_GROUP_LOCAL budget greatly exceeds DedicatedVideoMemory (UMA adapter).

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7337640648 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3034#issuecomment-7337640648). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T06:59:21Z. --- finding: source trace of why the iGPU is chosen silently by default and reports shared RAM as local budget (checked on `main` `f37c4a87d`, source-only -- no dual-GPU laptop locally). 1. **Default adapter selection (`d3d12/crates/leonida-gpu/src/host.rs:1488-1499`)**: When `LEONIDA_ADAPTER` and `LEONIDA_D3D12_WARP` are unset, `chosen_adapter()` returns `None` and `host.rs:1496` calls `D3D12CreateDevice(None, D3D_FEATURE_LEVEL_12_0, &mut device)`. Passing `None` asks DXGI for adapter 0 (Windows' default display adapter -- on hybrid AMD/NVIDIA laptops, the 512 MB iGPU unless overridden in Windows Graphics Settings), instead of querying `IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)`. 2. **Silent selection on the default path (`host.rs:1565-1568` vs `1628-1633`)**: `host.rs:1565-1567` already queries the chosen `IDXGIAdapter3` via `EnumAdapterByLuid(device.GetAdapterLuid())`, but line `1568` only logs `tracing::info!("host D3D12 device ready")` without the adapter name, `VendorId`/`DeviceId`, or `DedicatedVideoMemory`. The adapter name and `DedicatedVideoMemory` are currently logged only inside `chosen_adapter()` (`host.rs:1628-1633`) when `LEONIDA_ADAPTER` is explicitly set. 3. **Why the 512 MB iGPU logged `budget 15683 MB` as "the card's own" (`host.rs:14350-14426`)**: `Host::video_memory()` / `log_video_memory()` queries `DXGI_MEMORY_SEGMENT_GROUP_LOCAL` and labels it "the card's own". On UMA/integrated adapters, WDDM maps half of system RAM into `DXGI_MEMORY_SEGMENT_GROUP_LOCAL` even though `DXGI_ADAPTER_DESC1::DedicatedVideoMemory` is only 512 MB, so downstream residency/pool sizing treats shared system RAM as dedicated VRAM. 4. **Concrete fix direction**: - When `LEONIDA_ADAPTER` is unset, prefer `IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)` (skipping `DXGI_ADAPTER_FLAG_SOFTWARE`), falling back to the hardware adapter with the largest `DedicatedVideoMemory` if `IDXGIFactory6` is unavailable, and finally `None`. Keep `LEONIDA_ADAPTER` as the explicit override (allowing intentional iGPU selection). - Unconditionally log the chosen adapter (`Description`, `VendorId`/`DeviceId`, `DedicatedVideoMemory`, `SharedSystemMemory`, plus the enumerated hardware adapter list when >1 exists) right after `EnumAdapterByLuid` at `host.rs:1568`. - Log a prominent warning if the chosen adapter has small `DedicatedVideoMemory` (e.g., `< 4 GiB`) while a larger dedicated hardware adapter is present, or if `DXGI_MEMORY_SEGMENT_GROUP_LOCAL` budget greatly exceeds `DedicatedVideoMemory` (UMA adapter). AI-assisted: yes (Antigravity).
fiestorra commented 2026-12-02 13:34:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T13:34:33Z.


This is the same thing I measured on a desktop, and the guard you propose is the one piece still missing from the fixes. I am taking it.

Measured here, Ryzen 7 7800X3D with an RTX 4090 beside the Radeon iGPU - D3D12CreateDevice(None, ..), what the layer uses when no card is named:

  • the device is made on the integrated chip (vendor=0x1002, the same vendor your host-pipelines.driver stamp shows);
  • DLSS cannot start there: NVSDK_NGX_Result_FAIL_FeatureNotSupported, which reads like a driver problem and is not one;
  • every Rust device test passed against that card until #2995 put them on the card with memory of its own.

Your report is the third one of the same shape (#3034 here, #2907's "dlss not even working", #2762), and they all read as different bugs until someone prints the vendor.

What is already in the tree

  • #3007 (merged): the README says it, on the page a new user reads - "If this PC has more than one graphics card ... name the NVIDIA one (-Adapter 4090)", with the vendor measurement behind it.
  • #2999 (open): play-nvidia.ps1 says it when DLSS is asked for and no -Adapter is given.
  • #2993 (open): dlss::init warns instead of asking the SDK, when the device's vendor is not NVIDIA: "DLSS asked for and this device is not an NVIDIA card: the upscale stays a stretch (name the card: LEONIDA_ADAPTER, or the launcher's -Adapter)".
  • #2995 (open): the crate's device tests ask the card with the most memory of its own, so a test can no longer pass against an iGPU it was not about.

None of those is the guard: they all speak when something else already went wrong (DLSS asked, a script run, a test). The choice itself is still silent, which is your point.

The guard, as I would write it

In Host's device creation, after the default-adapter path: look at the card the device landed on, compare its DedicatedVideoMemory with the largest one DXGI lists, and when another adapter has more, log one line naming both - "the host device is on (N MB of its own); has <M MB. Name the card with LEONIDA_ADAPTER, or the launcher's -Adapter". No change of device (a user may want the integrated one, and the repo does not pick for people), no WMI, no cost when there is one card.

I have the machine to verify it both ways (iGPU default and -Adapter 4090), and I will open it as a pull request that references this issue.

And until it lands, the workaround for a laptop like yours is -Adapter 4060 on play-nvidia.ps1 - part of the name is enough.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7347096589 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3034#issuecomment-7347096589). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T13:34:33Z. --- **This is the same thing I measured on a desktop, and the guard you propose is the one piece still missing from the fixes. I am taking it.** **Measured here, Ryzen 7 7800X3D with an RTX 4090 beside the Radeon iGPU** - `D3D12CreateDevice(None, ..)`, what the layer uses when no card is named: - the device is made on the **integrated chip** (`vendor=0x1002`, the same vendor your `host-pipelines.driver` stamp shows); - **DLSS cannot start there**: `NVSDK_NGX_Result_FAIL_FeatureNotSupported`, which reads like a driver problem and is not one; - **every Rust device test passed against that card** until #2995 put them on the card with memory of its own. **Your report is the third one of the same shape** (#3034 here, #2907's "dlss not even working", #2762), and they all read as different bugs until someone prints the vendor. ## What is already in the tree - **#3007 (merged)**: the README says it, on the page a new user reads - *"If this PC has more than one graphics card ... name the NVIDIA one (`-Adapter 4090`)"*, with the vendor measurement behind it. - **#2999 (open)**: `play-nvidia.ps1` says it when DLSS is asked for and no `-Adapter` is given. - **#2993 (open)**: `dlss::init` warns instead of asking the SDK, when the device's vendor is not NVIDIA: *"DLSS asked for and this device is not an NVIDIA card: the upscale stays a stretch (name the card: LEONIDA_ADAPTER, or the launcher's -Adapter)"*. - **#2995 (open)**: the crate's device tests ask the card with the most memory of its own, so a test can no longer pass against an iGPU it was not about. **None of those is the guard**: they all speak when something else already went wrong (DLSS asked, a script run, a test). **The choice itself is still silent**, which is your point. ## The guard, as I would write it **In `Host`'s device creation**, after the default-adapter path: look at the card the device landed on, compare its `DedicatedVideoMemory` with the largest one DXGI lists, and when another adapter has more, log one line naming both - *"the host device is on <name> (N MB of its own); <other> has <M MB. Name the card with `LEONIDA_ADAPTER`, or the launcher's `-Adapter`"*. **No change of device** (a user may want the integrated one, and the repo does not pick for people), **no WMI, no cost when there is one card**. **I have the machine to verify it both ways** (iGPU default and `-Adapter 4090`), and I will open it as a pull request that references this issue. **And until it lands, the workaround for a laptop like yours is `-Adapter 4060`** on `play-nvidia.ps1` - part of the name is enough. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
fiestorra commented 2026-12-02 13:42:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T13:42:12Z.


The guard this issue asks for is #3141, as promised above.

What it does, in Host's device creation on the default branch: compares the card the device landed on with the one that holds the most DedicatedVideoMemory of its own, and when another has more, logs one line naming both:

host device on the default card, which is not the one with the most memory of its own:
  card="AMD Radeon(TM) Graphics" card_mb=512 bigger="NVIDIA GeForce RTX 4090" bigger_mb=24576
name the card with LEONIDA_ADAPTER, or the launcher's -Adapter

It does not change the device - the repo does not pick a card for people - and it costs nothing on a one-card PC: the same DXGI enumeration LEONIDA_ADAPTER already does, no WMI.

Verified here both ways: the ignored test asserts that the card it calls small really holds less than the one it names, and that the biggest card is never named beside another. cargo test -p leonida-gpu --lib -- --ignored bigger_card passes on the 4090 machine; clippy is back to the single warning main already has.

With that, the four pieces are: the README (merged), the launcher's note (#2999), the layer's DLSS warning (#2993), and this one for every other path that ends up on the wrong card without asking DLSS.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7347308451 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3034#issuecomment-7347308451). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T13:42:12Z. --- **The guard this issue asks for is [#3141](https://github.com/ProjectLeonida/mandy/pull/3141), as promised above.** **What it does, in `Host`'s device creation on the default branch**: compares the card the device landed on with the one that holds the most `DedicatedVideoMemory` of its own, and when another has more, logs one line naming both: ``` host device on the default card, which is not the one with the most memory of its own: card="AMD Radeon(TM) Graphics" card_mb=512 bigger="NVIDIA GeForce RTX 4090" bigger_mb=24576 name the card with LEONIDA_ADAPTER, or the launcher's -Adapter ``` **It does not change the device** - the repo does not pick a card for people - **and it costs nothing on a one-card PC**: the same DXGI enumeration `LEONIDA_ADAPTER` already does, no WMI. **Verified here both ways**: the ignored test asserts that the card it calls small really holds less than the one it names, and that the biggest card is never named beside another. `cargo test -p leonida-gpu --lib -- --ignored bigger_card` passes on the 4090 machine; clippy is back to the single warning `main` already has. **With that, the four pieces are**: the README (merged), the launcher's note (#2999), the layer's DLSS warning (#2993), and this one for every other path that ends up on the wrong card without asking DLSS. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
Sign in to join this conversation.
No labels
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.

Reference
ProjectLeonida/mandy#3034
No description provided.