exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 2:57 am

I have looked at the original darkplaces code - and with some minor source changes and a quick makefile hack, I have it built on the rpi with GLES2 acceleration - will clean up my changes and provide source changes needed to build on the RPI (and will include in retropie)

Super Jamie
Posts: 3
Joined: Thu Aug 04, 2016 6:07 am

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 9:55 am

Thanks exobuzz for being the real MVP.

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 1:12 pm

Wow, this is going to be great!

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 1:49 pm

To build on RPI

Code: Select all

git clone -b rpi https://github.com/joolswills/darkplaces
make sdl-release DP_MAKE_TARGET=rpi

RPI2 optimised - 

CFLAGS="-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations" make -j4 sdl-release DP_MAKE_TARGET=rpi


RPI3 optimised (may well not performance better than the rpi2 build) - 

CFLAGS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -funsafe-math-optimizations" make -j4 sdl-release DP_MAKE_TARGET=rpi
you end up with a file "darkplaces-sdl`

you can call it with `darkplaces-sdl -basedir /path/to/parent/of/id1/folder`

A retropie module will be available shortly.

Here are the source changes from upstream - very few changes required - https://github.com/joolswills/darkplace ... swills:rpi

might have bugs / I have only done limited testing.

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 6:47 pm

@exobuzz: thanks a lot for this! Any chance to build it agains SDL2 instead of the old SDL1.x?

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 7:04 pm

It uses sdl2 here - I forgot to mention that a raspberrypi targetted sdl2 is required also (eg like the one included in RetroPie)

Code: Select all

readelf -d ./darkplaces-sdl 

Dynamic section at offset 0x2ae00c contains 32 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libjpeg.so.62]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libSDL2-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libGLESv2.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
an easy way to install it is via RetroPie (for other people on this thread)

Code: Select all

sudo apt-get install git
cd
git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
cd RetroPie-Setup

then - to just install darkplaces-quake from source

sudo ./retropie_packages_sh darkplaces-quake

or to do it from a gui

sudo ./retropie_setup.sh

then navigate to Manage Packages -> manage Optional packages -> darkplaces-quake (under id 3xx)

it will be installed to /opt/retropie/ports/darkplaces-quake
here is the RetroPie module https://github.com/RetroPie/RetroPie-Se ... s-quake.sh

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Thu Sep 08, 2016 8:07 pm

Works great on Pi3! Not quite constant 60fps, but almost there...

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Sun Sep 11, 2016 8:47 am

@exobuzz: any clues to get to stable 60FPS on Pi3? Things to do on the Quake console, options to disable...

exobuzz
Posts: 137
Joined: Mon Nov 26, 2012 6:58 pm

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Sun Sep 11, 2016 9:01 am

Not done any experimenting I'm afraid.

User avatar
antiriad
Posts: 131
Joined: Sun Nov 17, 2013 7:38 pm
Location: Italy
Contact: Twitter

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Fri Mar 10, 2017 6:51 am

Hello,
I'd like to enjoy Darkplaces on RPi3.

Are "unofficial" SDL 2.X (2.0.4, 2.05) needed for better performance, or since the engine is yet GLES optimized I can build it with SDL2 in the official Jessie repository?

Thanks!

Haemogoblin
Posts: 182
Joined: Mon Sep 24, 2012 12:13 pm
Location: United Kingdom
Contact: Website

Re: NEW: Darkplaces Quake engine up and running on Raspberry PI

Sun Apr 08, 2018 1:17 pm

Hey guys

Did this with on the latest version of Stretch?
Blackadder: Right Baldrick, let's try again, shall we? This is called adding. If I have two beans, and then I add two more, what do I have?
Baldrick: Some beans

Haemogoblin
Posts: 182
Joined: Mon Sep 24, 2012 12:13 pm
Location: United Kingdom
Contact: Website

Re: NEW: Darkplaces Quake engine up and running on Raspberry PI

Tue Apr 10, 2018 7:36 pm

Just a heads up, the following command does not work on a RPI3 running stretch.

make sdl-release DP_MAKE_TARGET=rpi

Seems to have issue with SDL
Blackadder: Right Baldrick, let's try again, shall we? This is called adding. If I have two beans, and then I add two more, what do I have?
Baldrick: Some beans

victor256
Posts: 1
Joined: Sat Nov 10, 2018 2:18 am

Re: NEW: Darkplaces Quake engine up and running on Raspberry PI

Sat Nov 10, 2018 2:45 pm

i fixed it but NOW i have THIS error:
Flags: 0x00000009* failed to add service - already in use?
any fix?

Return to “Gaming”