spice2x / spice2x.github.io

🌶️ spice2x is a spicier fork of SpiceTools with hundreds of bug fixes and new features 🌶️
https://spice2x.github.io/
GNU General Public License v3.0
87 stars 2 forks source link

SDVX issues with hybrid GPU laptops #117

Open sp2xdev opened 4 months ago

sp2xdev commented 4 months ago

Game and version

SDVX after ~2022 (the "year 1" release is apparently OK)

Version of spice2x

all

Attached log.txt file, if available

For VM (UFC) mode, symptom is that the user sees the following:

I:NvDisplayConfig: GetMainDisplayRefreshRate = 0.000hz

or

I:NvDisplayConfig: MainDisplay= 0.000hz

In reality - this can manifest as any user-visible graphics issue (see below) - affects both KFC and UFC modes.

Describe the issue

For laptops with Intel/AMD iGPU + NVIDIA dGPU combo, the game refuses to display anything on the external monitor. It doesn't matter if the external screen is set to the primary or secondary screen, the game will just not create a window.

For some people, the game launches, but at 1366x768. Or maybe at 1080p, but the wrong resolution.

Using the NVAPI Block does not seem to help.

Note for non-technical readers of this document This is not bug in Spice, rather a side effect of how Voltex handles monitors. But it would be nice if a solution can be found, whether it's a set of shims provided by spice itself, or patches (hex edits).