GZDoom (SDL) does not seem to work properly on Weston

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

GZDoom (SDL) does not seem to work properly on Weston

Postby Rachael » Mon Feb 08, 2021 6:54 am

While SDL seems to work okay on Weston (the reference Wayland compositor), it does seem to have some issues.

Test environment:

Spoiler:


It works okay for fullscreen, but in windowed mode the window simply disappears. vid_preferbackend 0 (opengl) works okay, vid_preferbackend 2 (softpoly) simply crashes.

I'm sticking this in tech issues for now, not sure if the bug is in GZDoom itself or in SDL. It appears that the SDL version being compiled is 2.0.0 (what is available in Ubuntu's apt repo).
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Blzut3 » Sat Feb 13, 2021 1:12 pm

SDL on Ubuntu 20.04 should be 2.0.10. I would definitely build the latest SDL and check that first. Also check setting vid_sdl_render_driver to software.

But I definitely wouldn't rule out a bug in the use of SDL_Renderer for SoftPoly. On Linux the only value proposition is that with the software render driver it does provide a pure software code path, but on systems with OpenGL or Vulkan available it's slower even for throwing the Carmack renderer to the screen (even when not using the software render driver) so I'd be surprised if it gets a whole lot of testing.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004
Github ID: Blzut3
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby drfrag » Sat Feb 13, 2021 2:06 pm

Softpoly crashes on arm due to the memory alignment problem.
User avatar
drfrag
Os voy a romper a pedazos!
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Discord: drfrag#3555
Github ID: drfrag666

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Cacodemon345 » Sat Feb 20, 2021 12:46 pm

I recently tested GZDoom on Softpoly backend on a Amlogic S912 device running Manjaro ARM 64-bit and it doesn't seem to crash. Is it some sort of CPU/RAM problem exclusive to the Raspberry Pis?
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Rachael » Sat Feb 20, 2021 12:55 pm

Possibly, I don't know. I know Pi's don't typically use the most up-to-date ARM chips but I also wouldn't expect it to fail on something this badly either. Even if so - I would have thought maybe the compiler would catch it.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Cacodemon345 » Mon Mar 01, 2021 12:40 pm

Does compiling GZDoom with -march=armv8-a fix the Softpoly crash?
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest