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.
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
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.
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
Joined: 14 Jul 2004
Location: Belgium, Antwerp


Return to General

Who is online

Users browsing this forum: DotBot, Semrush [Bot] and 6 guests