Re: [hatari-devel] Suggested patch to fix the SDL GUI on KMS/DRM |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Suggested patch to fix the SDL GUI on KMS/DRM
- From: Jens Guenther <dbotw@xxxxxxx>
- Date: Sun, 1 Nov 2020 15:21:41 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604240503; bh=WqCbdgpQtVsYiEbUHUbzZbcnlekwvxif8BU3Rta7G5Q=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References; b=R8FWR75zeW3LnCFjmcwJsJTRYG1pgPddyl0TacIevmQVaPH0+jv62OPeUY/hldymo VkIfj4oOScrVYbopUM9qTCFuVPXc/2Tmq0d6CeyFLLbNBW744+pgSGgE8EkOlcijcP IiUthPlV4mHgD1NBY7JaYmKCvdXdhxIGy1FYv4co=
Christer Solskogen <christer.solskogen@xxxxxxxxx> wrote:
> Strange! I get better performance (better fps) when running hatari in
> Wayland on Pi4.
It might be helpful to get more information about your configuration:
diff --git a/src/screen.c b/src/screen.c
index b762f1e2..38cabdab 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -533,6 +533,10 @@ bool Screen_SetSDLVideoSize(int width, int height, int bitdepth, bool bForceChan
SDL_RenderPresent(sdlRenderer);
SDL_GetRendererInfo(sdlRenderer, &sRenderInfo);
+
+ fprintf(stderr, "SDL_VIDEODRIVER=%s\n", SDL_GetCurrentVideoDriver());
+ fprintf(stderr, "SDL_RENDER_DRIVER=%s\n", sRenderInfo.name);
+
bIsSoftwareRenderer = sRenderInfo.flags & SDL_RENDERER_SOFTWARE;
if (bitdepth == 16)
You can override the video/render driver using environment variables:
$ SDL_VIDEODRIVER=KMSDRM SDL_RENDER_DRIVER=software ./hatari
For SDL_VIDEODRIVER you can try: x11 | wayland | KMSDRM | RPI
For SDL_RENDER_DRIVER: opengl | opengles | opengles2 | software
Jens