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.
User avatar
ducon
Posts: 186
Joined: Sun Dec 21, 2003 1:11 am
Contact:

Post by ducon »

Bio Hazard, what’s your video card, and what driver are you using?
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

I've got a GeForce FX 5700 LE 128MB DDR AGP8x at /dev/video0 running on nvidia-kernel-1.0.8762 ~x86 and nvidia-glx-1.0.8762 ~x86.


Everything else runs super-fast. It's just ZDoom that's slow. It's likely a CPU thing.
User avatar
ducon
Posts: 186
Joined: Sun Dec 21, 2003 1:11 am
Contact:

Post by ducon »

Did you try to launch it from an xterm? Something in the zdoom logs?
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

I've only launched it out of the console. Nothing looks out of the ordinary.
User avatar
ducon
Posts: 186
Joined: Sun Dec 21, 2003 1:11 am
Contact:

Post by ducon »

Did you try it without a WAD, in Doom2 for example?
Did you try my executable?
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Post by Hirogen2 »

Bio Hazard wrote:I really want to write an ebuild of it since currently most Linuxers who don't do compiling only have the options of doomsday or god forbid... legacy. The only problem is I have no idea how to do this. I have the docs right here but I'm not sure about some of the things I need to do.
Then look at zdoom-2.1.1-0.src.rpm's specfile - it is precise instructions as can be.
What's ZD's Licence? Should I just put "Doom licence"? "ID Software Licence"? I know this isin't based off the GPL version.
BSD/DSC. If you find any GPL, you can keep it and stick it to your wall like a picture :D
The dependancies would be fmod, flac, nasm, and SDL?
A good packaging system should auto-find any dependencies.
Can you make a .tar.bz2 file for us Linuxers?
zdoom-2.1.1-src.tar.bz2 (download stats on SF show it's preferred over 7z)
Where would the installation part put it?
See specfile, /usr/games for binaries, /usr/share/PACKAGENAME for data. Also see Patch1 of the src.rpm.
Does the makefile automatically install it when I run "make install"?
It does not come with an install target.
Where do I tell the user to put the IWAD without editing the INI?
/usr/share/zdoom (after applying Patch1)
Does there need to be a ZDoom.ini file?
Doom will start with the defaults if there is none.
Strange, ZDoom is running excruciatingly slow. I can't run it at anything above 640x480 at 35 FPS. Are there any compiler hacks I could use to speed it up a bit?
Using OpenGL might help. (I also get only 83 fps in 320x200 mode using vid_fps when looking at a simple wall - this is a known X11 "problem". Under DirectX, I get somewhat over 799 fps.)
User avatar
Jim
Posts: 535
Joined: Mon Aug 11, 2003 10:56 am

Post by Jim »

Bio, are you setting CFLAGS? I actually don't have any arch-specific settings set (no -march=yourarch).

If you have things setup right, this should give a good speed boost:

Code: Select all

$ export SDL_VIDEODRIVER=dga
$ ./zdoom
If that simply makes it crash, then tell me what you get when you run

Code: Select all

$ ls -l /dev/mem
and this:

Code: Select all

$ grep -n kmem /etc/group
As for your other questions:
The license for ZDoom is the conjunction of several licenses including the orginal Doom license and the license Ken Silverman released build under. The dependancies are flac, flac++, fmod, nasm, SDL, and zlib. The most simple summary of these licenses is: For noncommercial use only. Also, as I said before, there is no install target in the makefile. Lastly, distributing a zdoom.ini file is neither necessary nor useful.
User avatar
ducon
Posts: 186
Joined: Sun Dec 21, 2003 1:11 am
Contact:

Post by ducon »

I have 35 FPS with the console, but 60 without it. Yes, it’s a few.
LeSanglier

Post by LeSanglier »

Hello !

Does it possible to compile Zdoom without fmod ??

Thanks in advance !!
User avatar
Jim
Posts: 535
Joined: Mon Aug 11, 2003 10:56 am

Post by Jim »

No, not at the moment.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

Jim wrote:ESD and aRts (the funny capitalization is not a mistake, aRts is :p) are crap for things that require low-latency and they are both no longer being developed. Use ALSA (or OSS failing that) for games and multimedia.
I would use ALSA if I could, but for some reason neither OSS or ALSA work correctly. Also on a different system, which was using ALSA correctly, I noticed that it would only play sounds from a single application at once.

Although I think my problem is with my onboard sound's driver :(
I don't know enough about Linux right now to know how to fix it. At some point I hope to upgrade from Ubuntu 5.10 to 6.06. I'm just waiting for an opportunity to get the ISO and write myself a CD. I don't feel like downloading another ISO with my 56k.
User avatar
ducon
Posts: 186
Joined: Sun Dec 21, 2003 1:11 am
Contact:

Post by ducon »

You can use ALSA with OSS emulation modules like snd-pcm-oss.
The multiple applications sound access may work with ALSA (it depends on your sound card, and works with mine), but it will not work if an OSS application makes sound.
User avatar
Krillancello
Posts: 309
Joined: Sat Nov 27, 2004 12:39 am
Location: Teh Intarwebivurs

Post by Krillancello »

It looks like ZDoom 2.1.4 is looking in ~/.zdoom automatically (as in, without cd'ing to the directory). :D
User avatar
scen
Posts: 17
Joined: Tue Aug 08, 2006 9:42 am
Location: Padova, Italy
Contact:

Post by scen »

Hello to everybody!

This is my first post! :roll:

Today i'v made a working ebuild of ZDoom (version 2.1.4) for Gentoo Linux 8-)

This is a "work-in-progress", i'll submit it on Gentoo Bugzilla as soon as possible!

Some instruction (i'll insert them in ebuild):
  • Create an overlay and put the ebuild in games-fps/zdoom dir
  • put IWAD files in /usr/share/games/doom-data
  • run zdoom without parameters to choose IWAD from menù, or use -iwad <game>.wad switch
Feel free to test it!
Attachments
zdoom-2.1.4.ebuild.zip
ebuild for games-fps/zdoom-2.1.4
(863 Bytes) Downloaded 242 times
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

:')
I'll do my best to iron out bugs!
Come Krillancello! We must join forces! Onward to portage victory!


On another note, I really need to clean out this thread. Most of it can go on the wiki.


EDIT: ZDoom isin't GPL-2. It's something like "Random mashup of licences V4.78.9.8.2.98.4"
I'd probably just stick with "DOOM" for the licence.
Post Reply

Return to “Tutorials”