The official "ZDoom on Linux" thread.

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Re: The official "ZDoom on Linux" thread.

Postby Niko » Sat Sep 23, 2017 11:21 am

I just wanted to register an account and say thank you to everyone who made zdoom and gzdoom and the frontend superdoom on Linux possible. It runs great on Arch and I'm reliving all the old nightmares I first encountered in the early days of Doom's release. Like. The 90's, when my dad brought home a 2 disc packed version for our Windows 3.1 machine.
Niko
 
Joined: 23 Sep 2017
Discord: Niko

Re: The official "ZDoom on Linux" thread.

Postby GuntherDW » Fri Oct 20, 2017 3:40 am

It might be an oversight of me or just something that is "not really supported beyond 'best effort'" but performance with regards to the "software" renderer in Linux seems te be a bit... abysmal.
Even for my ancient by todays' standards AMD Phenom II x4 955.

The weird part however is that when I attempt to run the windows (32bit, 64bit crashed with my wine version) version through wine - (wine-2.3 on Gentoo with staging patches applied. I need to update, I know) with the OpenGL backend, to attempt to match the setup, it even speeds it up because it's one less translation layer to keep track of - it seems to run okay-ish. Upwards of 40-80 in vanilla doom 2 levels.
In the Linux version, using the most recent up to date version atm from the "master" branch (git commit da42c9adf5338be641ee1bb194647aea0355d41b), performance is almost half if not even slower.
Switching it to SDL doesn't seem to change much, from what I gather it should be even slower but it's not noticable.

Turning on the poly renderer makes it run even poorer. Turning off the truecolor renderer speeds it up to "regular" zdoom levels in Linux but like I said only having half or even less of the performance is kind of meh.
Unless the precompiled windows versions have specific compiler flag optimisations or targets set? Then again I do have -march=native and a somewhat recent GCC (5.4.0-r3) installed.

I usually run the hardware accelerated OpenGL renderer which runs fine on my Geforce GTX 670 so it's not something that really affects me all that much, but nevertheless it's something that I find interesting.

Long story short I'd ask if it's just my system or a "known" issue.
This is on 1920x1080 by the way. Windowed mode.

EDIT: looks like CFLAGS/CXXFLAGS and CPPFLAGS gets ignored when running make, it just "forces" it to -march=x86_64 for qzdoom's source and adds -mtune=generic for most of the projects in the source tree.
User avatar
GuntherDW
 
Joined: 14 Jul 2004
Location: Belgium, Antwerp

Re: The official "ZDoom on Linux" thread.

Postby _mental_ » Fri Oct 20, 2017 5:31 am

All compiler and linker flags must be adjusted via CMake. The default configuration is Debug which could explain bad performance.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: The official "ZDoom on Linux" thread.

Postby GuntherDW » Fri Oct 20, 2017 11:05 am

Looks like you were correct. I set it to "Release" and the performance boost was enormous.
It is now up to par and even faster than the windows build through wine. Thanks :).
User avatar
GuntherDW
 
Joined: 14 Jul 2004
Location: Belgium, Antwerp

Re: The official "ZDoom on Linux" thread.

Postby bLUEbYTE » Wed Mar 11, 2020 7:37 am

Tried GZDoom 64-bit deb, version 4.3.3 on an intel 8th gen NUC.
specs: Kubuntu 20.04. Intel Iris plus 655, OpenGL mode, mesa library version 20.0.0, OpenGL 4.6.
settings: 1920x1080, ScaleNX 2x, trilinear, anisotropic filtering at 8x, light shadowmaps at 128.

Had terrible performance on the default X11 KDE Plasma session
As a rough benchmark, at MAP13 start location:
On Windows 10, used to get 137-142 FPS
X11 session: 43 FPS

Then I installed the package plasma-workspace-wayland. After a logout, the Wayland session was available. Picked it, logged in and did the same test: It was going back and forth between 117-200 fps. Pretty good!

So, on Ubuntu 20.04, definitely give a go to the Wayland display server if you have an Intel iGPU.
bLUEbYTE
 
Joined: 15 Nov 2019
Location: Australia
Graphics Processor: Intel with Vulkan Support

Re: The official "ZDoom on Linux" thread.

Postby middlefingerman » Mon May 04, 2020 1:10 pm

Hmmm... I can just install zandronum rite off the bat on my Linux computers without compiling nothing...
All I do is
Code: Select allExpand view
wget -O - http://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
sudo add-apt-repository 'deb http://debian.drdteam.org/ stable multiverse'
sudo apt-get install zandronum doomseeker-zandronum
User avatar
middlefingerman
Windows Pro makes all MSPaint drawings professional? I'm in!
Banned User
 
Joined: 04 May 2020
Location: On the toilet

Re: The official "ZDoom on Linux" thread.

Postby middlefingerman » Tue May 05, 2020 11:53 am

Well actually, apparently Zandronum only works on 19.04 and below, as 20.04 seems to crash zandronum...
GZDoom works fine though
User avatar
middlefingerman
Windows Pro makes all MSPaint drawings professional? I'm in!
Banned User
 
Joined: 04 May 2020
Location: On the toilet

Re: The official "ZDoom on Linux" thread.

Postby Edward-san » Wed May 06, 2020 6:52 am

middlefingerman wrote: as 20.04 seems to crash zandronum


Please file a new bug report at the zandronum bug tracker, or it won't get noticed at all.
Edward-san
Mathematics is the language with which God has written the universe. (Galilei)
 
Joined: 17 Oct 2009

Re: The official "ZDoom on Linux" thread.

Postby bLUEbYTE » Fri Jul 24, 2020 4:29 pm

middlefingerman wrote:Well actually, apparently Zandronum only works on 19.04 and below, as 20.04 seems to crash zandronum...
GZDoom works fine though


Is the crash happening a short time after launching the game? If so, I'm pretty sure it's due to Fluidsynth version. I mentioned a solution here viewtopic.php?f=50&t=69408#p1160411
bLUEbYTE
 
Joined: 15 Nov 2019
Location: Australia
Graphics Processor: Intel with Vulkan Support

Re: The official "ZDoom on Linux" thread.

Postby bLUEbYTE » Fri Jul 24, 2020 4:39 pm

Here's a tip for Linux users who have recent Intel iGPUs (Skylake+ I think) and with recent version of MESA (20+).

What happened is that with the latest Mesa drivers they switched to a new opengl driver backend called 'iris', from 'i965'. While this seems to have boosted performance in other workloads, in GZDoom and LZDoom I verified that this actually has a significant hit to FPS.

What you want to do is set an environment variable to override it:
Code: Select allExpand view
MESA_LOADER_DRIVER_OVERRIDE=i965


There are a few ways to do so:
for temporary setting, and/or if you're running the game via console, just put that assignment in front of your command.
if you're using a .desktop file to launch it in your desktop environment, you can create a copy of the launcher like so:
Code: Select allExpand view
cp /usr/share/applications/gzdoom.desktop ~/.local/share/applications/

and then edit the Exec line like so:
Code: Select allExpand view
Exec=env MESA_LOADER_DRIVER_OVERRIDE=i965 gzdoom


You can also set this globally, by placing this in /etc/environment:
Code: Select allExpand view
MESA_LOADER_DRIVER_OVERRIDE=i965

in that case you'll want to restart for it to take effect.

To verify, open your console and GL_VENDOR should say "Intel Open Source Technology Center".

It has doubled my FPS in classic style maps.

P.S. I also recommend you give a try to LZDoom if you have intel iGPU, yes, even if you have one of the newer ones like me, because it has a bit better performance compared to GZDoom using the same graphics settings, regardless of the above.
bLUEbYTE
 
Joined: 15 Nov 2019
Location: Australia
Graphics Processor: Intel with Vulkan Support

Postby BL1TZKRI3G » Sat Sep 12, 2020 9:09 pm

Hey. Would anyone here happen to be able to link me to any tutorials on how to install & run GZDoom mods on Ubuntu? Thanks in advance.
BL1TZKRI3G
 
Joined: 10 Feb 2018
Location: Somewhere in the west. The northwest. The north, northwest. Very cold/10
Discord: b& lmao
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: The official "ZDoom on Linux" thread.

Postby m8f » Sat Sep 12, 2020 10:03 pm

To add repository for GZDoom: http://debian.drdteam.org/
To load mods, use a frontend (launcher), or use command line or a shell script.
Spoiler:
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: The official "ZDoom on Linux" thread.

Postby BL1TZKRI3G » Mon Sep 14, 2020 7:27 pm

m8f wrote:To add repository for GZDoom: http://debian.drdteam.org/
To load mods, use a frontend (launcher), or use command line or a shell script.

before using apt-get, I decided to remove opt/gzdoom because it may interfere with the installation of GZDoom. But nope, apparently it was necessary. Good work. I love how overly complicated the simple placing of a few files has become for seemingly zero reason.
BL1TZKRI3G
 
Joined: 10 Feb 2018
Location: Somewhere in the west. The northwest. The north, northwest. Very cold/10
Discord: b& lmao
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: The official "ZDoom on Linux" thread.

Postby Caligari87 » Tue Sep 15, 2020 12:33 am

The drdteam repo for GZDoom installs it systemwide (as does the .deb file from the Downloads page on ZDoom.org, I believe). The /opt/gzdoom/ folder is where the main program files live, so yeah, it's necessary. It's not "overcomplicated" unless you're trying to make it work like Windows, which... Well Linux isn't Windows, so some adjustment is necessary.

Code: Select allExpand view
$ wget -O- https://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
$ sudo apt-add-repository 'deb https://debian.drdteam.org/ stable multiverse'
$ sudo apt-get install gzdoom

Then you can run GZDoom from anywhere on the system like any regular program/command, and likewise store your mods anywhere on the system. Personally I use /home/username/Programs/Doom/. If you need to edit your config file, that's in your home/username/.config/gzdoom/ folder.

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Previous

Return to General

Who is online

Users browsing this forum: Redead-ITA and 2 guests