From c2ea5cc0fba3c464d0c7418c9a81a3c7f526300e Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 25 Nov 2025 19:34:11 +0000 Subject: [PATCH] add windows regedit hack --- docs/user/Graphics.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/user/Graphics.md b/docs/user/Graphics.md index 7100030ade..7431760f91 100644 --- a/docs/user/Graphics.md +++ b/docs/user/Graphics.md @@ -90,3 +90,21 @@ The OpenGL backend would invoke behaviour that would result in swarst/LLVMpipe w ### HaikuOS compatibility HaikuOS bundles a Mesa library that doesn't support full core OpenGL 4.6 (required by the emulator). This leads to HaikuOS being one of the few computer platforms where Vulkan is the only available option for users. If OpenGL is desired, Mesa has to be built manually from source. For debugging purpouses `lavapipe` is recommended over the GPU driver; there is in-kernel support for NVIDIA cards through. + +### Fixes for Windows 10 and above having "Device loss" +```cmd +@echo off +pushd "%~dp0" +cd .. +if exist "%temp%\FixFullScreen.reg" ( + del %temp%\FixFullScreen.reg +) +set str_path="%cd:\=\\%\\eden.exe" +echo Windows Registry Editor Version 5.00 >> %temp%\FixFullScreen.reg +echo. >> %temp%\FixFullScreen.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers] >> %temp%\FixFullScreen.reg +echo %str_path%="~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE" >> %temp%\FixFullScreen.reg +regedit /s %temp%\FixFullScreen.reg +del %temp%\FixFullScreen.reg +exit /b +```