Repository navigation
Conversation
XSystemGetDeviceType reported Series X (Anaconda) unless LEONIDA_DEVICE_TYPE said otherwise. The package is one executable for both consoles, so on an 8 GB GPU the Series S profile is the one that fits. With LEONIDA_DEVICE_TYPE unset it now answers Lockhart (6) on a GPU with less than 10 GiB of VRAM, Series X's GPU-optimal memory, and Anaconda (7) otherwise or when the VRAM can't be read (runtime/src/device_profile.h). The VRAM is read once through DXGI's DedicatedVideoMemory (gta6rt builds without the Vulkan headers), for the GPU the runtime draws with: LEONIDA_VK_DEVICE by name, no software or Microsoft adapter, the most dedicated memory. The choice is logged once. XSystemGetAnalyticsInfo's form follows; XSystemGetAppMemoryUsageLimit is unchanged. The title reads the type through the registry value ProjectLeonida#3775 serves. Tests: xgameruntime_test (the rule, the default on the machine's GPU with the form matching, the override); tiny_game accepts 6 or 7 from the shim (the stub DLL answers 0). RX 5700 XT (8151 MiB), AMD 26.11.2, Windows 11: Series S; full ctest 173/173. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested head Configured with
The last row covers the unknown-VRAM fallback, not WARP rendering or WARP selection: this shim excludes software adapters and does not read Red control: restored only AI-assisted (Devin); no game files. |
|
Independent verification on a real sub-10 GiB discrete GPU — the case the existing results here (RTX 5090 32 GB, AMD iGPU) could not exercise. PR head Environment (AI-assisted, OpenCode): Windows 11 Pro build 26300, MSVC 19.44.35230, CMake 4.4.4 + Ninja, RelWithDebInfo, Vulkan headers/SDL3 fetched by CMake. GPU: NVIDIA GeForce GTX 1060 6GB, driver 582.78; DXGI The deciding line: So the default is Tests:
Note (not introduced by this PR): the
|
|
I tested this head ( Two test changes handled both profiles. Check that the default export is 6 or 7 and that the title-style registry read equals that export. In the raw DWORD check, expect
One correction for the PR description and source comment: on this integrated GPU, host DXGI MSVC 19.44, CMake/Ninja Release, focused |
|
Reviewed at merge with current main 3faac55 (clean auto-merge; mains offline-impl commits since your base do not touch the device-type path). The pure rule in device_profile.h is correct including the exactly-10 GiB to Series X boundary, the DXGI probe reuses the layers existing GPU filter helpers from vulkan_device_filter.h (verified present on main) rather than duplicating them, and the README row matches the code. The RX 5700 XT observation and the ctest 173/173 claim cannot be reproduced in this CPU-only Linux environment — the windows CI job (pending) covers the DXGI path. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only review). |
|
Security review (static): untrusted DLL search order when loading
(Reviewed at head Static security review (AI-assisted, read-only diff audit; no code or game files were executed). |
|
checked: #48213b542ff | base:
agent: yes |
Claimed in #4683 (#4683 (comment)), new RT item.
Depends on: #3775 (the title reads the console type through the registry value
ConsoleMode, which #3775 serves fromXSystemGetDeviceType; without it the title's own copy of the function answers PC whatever this returns)What and why
XSystemGetDeviceTypereported Series X (Anaconda) unlessLEONIDA_DEVICE_TYPEsaid otherwise. The package is one executable for both consoles, so the title picks its profile from the console type at run time. On an 8 GB GPU (RX 5700 XT, RTX 3060 Ti, RTX 3070) the Series X profile asks for more than the card holds, and the Series S one is the profile that fits.runtime/src/device_profile.h, a pure function): Series S (Lockhart, 6) on a GPU with less than 10 GiB of VRAM, which is Series X's GPU-optimal memory. Series X (Anaconda, 7) otherwise, or when the VRAM can't be read, as before.DedicatedVideoMemory, not Vulkan as the claim said.gta6rtbuilds without the Vulkan headers (they're optional inruntime/CMakeLists.txt) andxgameruntime.cppdoesn't use them. On Windows that value is the GPU's largestDEVICE_LOCALheap, the one the layer's ownIDXGIAdapter(dxgi_com.cpp) reports.LEONIDA_VK_DEVICEfilters by name, software and Microsoft adapters are left out (vulkan_device_rankputs them last), and the one with the most dedicated memory wins. That is the discrete GPU on a machine that also has an iGPU.LEONIDA_DEVICE_TYPEstill decides when set.XSystemGetAnalyticsInfo's form follows the type, as it already did for 6.XSystemGetAppMemoryUsageLimitis unchanged.[rt] xgameruntime: reporting Xbox Series S: the GPU has 8151 MiB of VRAM, less than 10 GiB (LEONIDA_DEVICE_TYPE=6 or 7 picks Series S or X).runtime/README.md's row forLEONIDA_DEVICE_TYPEgives the new default.What this doesn't settle: that the title lowers its settings with the Series S type is inferred from the one executable for both consoles, not measured, since the title doesn't boot yet. The type is also the only thing that changes here: the memory the title is told it has stays the PC's RAM.
Tests
RX 5700 XT (8 GB), AMD Adrenalin 26.11.2, Windows 11, MSVC 19.44:
xgameruntime_test(133 checks pass):LEONIDA_DEVICE_TYPE=7and=6still decide, with the form following.tiny_game(therun_tiny_game*tests) checked that the shim answersXSystemGetDeviceTypeby expecting 7. It now takes 6 or 7. The stub DLL that stands for the host answers 0, so the check still tells the two apart.xgameruntime_user_testand the fullctestpass (173/173). The docs and text tests pass.No game files were used. AI-assisted (Claude Code).