The official "ZDoom on Linux" thread.

Handy guides on how to do things, written by users for users.

Moderators: GZDoom Developers, Raze Developers

Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Linux" thread.

Post by Edward-san »

This is a bug and it's already reported here.

Note: Gez backported those changes to GZdoom as well, so now it doesn't compile. :cry:
Gez
 
 
Posts: 17833
Joined: Fri Jul 06, 2007 3:22 pm

Re: The official "ZDoom on Linux" thread.

Post by Gez »

Well, try GZDoom r1259 then and tell me if it works. I don't have enough room on my HD to install a Linux partition and test myself...

Worst case, hide or rename <X11 folder>/Xcursor/Xcursor.h before compiling ZDoom.
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

Thanks for the feedback.
I tried the easiest first. I renamed Xcursor.h which was found under /usr/include/X11/Xcursor
However, the make now fails on finding the Xcursor.h.


[ 39%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_system.o
/home/brett/Downloads/Doom/zdoom-src/trunk/src/sdl/i_system.cpp:85:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/zdoom.dir/sdl/i_system.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2


I can try the GZDoom r1259, however I need some pointers and clarification as I am new to this.
Where is it? What is the difference between ZDoom and GZDoom? Also is this an older version, and if so what would I be missing?

Thanks!
/Brett
Gez
 
 
Posts: 17833
Joined: Fri Jul 06, 2007 3:22 pm

Re: The official "ZDoom on Linux" thread.

Post by Gez »

Okay, so the Xcursor manip didn't work.

[wiki]GZDoom[/wiki] is a fork of ZDoom created by Graf Zahl (one of the ZDoom devs). Its SVN repository tree is hosted on Mancubus.net too. You will not miss anything, but you will gain an OpenGL renderer (which you are still free not to use anyway).

Since I have developer access to GZDoom, but not to ZDoom, that means that sometimes I can address various issues that ZDoom doesn't.
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

Cool. Thanks for the clarification/info. I will give it a go!

/Brett
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Linux" thread.

Post by Edward-san »

Gez wrote:Well, try GZDoom r1259 then and tell me if it works.
It does, I didn't need to change anything in the code. Also, it appears that the in-game cursor movement is smoother than expected. :shock:
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

OK, so GZDoom compiled fine. Thanks for getting me past that.

Now, I am able to start and play. However, it is too slow to play.
I ran top in another terminal and see that gzdoom is taking anywhere
from 96%-98% CPU. Thus, I am suspecting there is something
in either the video settings or something else.

I did some searches on the forum and saw some mention of
vsync, and cl_capfps. I tried setting cl_capfps=true(default is false)
but it made no difference. However, it also made mention of
changing the FPS, but I saw no where to set this. Not sure if
I am chasing a red herring or what.

Any ideas on tweaking video to see if it has any bearing on
the high CPU/slow play, or other areas to look for?

TIA,
/Brett
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Linux" thread.

Post by Edward-san »

Are you using software renderer or opengl renderer? Which hardware spec do you have?
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

How do I tell? Is that a setting for GZDoom, or at the OS level?
I do see OpenGL settings in the options of the game.
In the zdoom.ini I see vid_renderer=1 if that applies.


As for hardware specs, not sure what you want exactly.
I am running on a Dell Latitude E6410 Laptop. 8GB RAM
CPU Vendor ID: GenuineIntel
Name: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz

lspci output -
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)

Not sure what else you might need. Just let me know.
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

Forgot to mention, that I have used skulltag on this same laptop for sometime and
do not experience this slowness/lag. I have been trying to compare the settings
between it and GZDoom, but have not found anything yet.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Linux" thread.

Post by Edward-san »

BrettMckee wrote:How do I tell? Is that a setting for GZDoom, or at the OS level?
I do see OpenGL settings in the options of the game.
In the zdoom.ini I see vid_renderer=1 if that applies.
I was talking about the game settings. vid_renderer=1 means you're using the gl renderer. What happens if you set vid_renderer=0 (software renderer) and restart the program? Is it there a difference about the performances?

About the gzdoom vs skulltag situation, I don't know what happened which worsened the performance...
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

That did it! It is working quite well now. I also checked the skulltag.ini and saw that it had set vid_renderer=0. So, setting it the same
in zdoom.ini fixed the slowness/CPU issue.

Thanks!
/Brett
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Hirogen2 »

BrettMckee wrote:Now, I am able to start and play. However, it is too slow to play.
I ran top in another terminal and see that gzdoom is taking anywhere
from 96%-98% CPU.
Many games always run at max CPU, because they run in a simple busyloop and to also give you the highest-attainable framerate.
User avatar
Mannequin
Posts: 441
Joined: Tue Jul 15, 2003 8:21 pm
Location: On The Lonely Island somewhere.

Re: The official "ZDoom on Linux" thread.

Post by Mannequin »

Anyone here use Mint Linux? I'm wondering if there are any issues.
BrettMckee
Posts: 8
Joined: Wed Sep 21, 2011 1:32 pm

Re: The official "ZDoom on Linux" thread.

Post by BrettMckee »

I do. See my last few posts to see what issues I ran into. I have been using it fine now on Linux Mint 11.04
Post Reply

Return to “Tutorials”