Welcome, Guest. Please login or register.

Author Topic: New Quake2 68k faster version for 68040/68060  (Read 2646 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show only replies by Cosmos Amiga
    • http://leblogdecosmos.blogspot.com
New Quake2 68k faster version for 68040/68060
« on: May 24, 2016, 12:06:25 PM »
Here a new recompilation of ref_gl.dll using gcc 2.95.3-4, a part of the Quake2 68k game

- recompiled for the 68040/68060
- added a "$VER: Amiga Quake2 v1.1 by Steffen Haeuser" in the .dll


I use timedemo1 & map demo1.dm2 for the benchmark

From 10.6 fps, I get now 11.9 using the mathieeedoubtrans.library v46.00

Archive ready soon for download !


The Aminet Q2Src.lha and/or minigl.lha v1.2 sources have two missing routines : _mglMultiModeDrawElements and _m_ConvertFixMatrix

If you have them, please email me of course !





:)

Offline Niding

  • Hero Member
  • *****
  • Join Date: Sep 2004
  • Posts: 566
    • Show only replies by Niding
Re: New Quake2 68k faster version for 68040/68060
« Reply #1 on: May 24, 2016, 12:19:01 PM »
Great work as usual :)

Sadly I still only have a low performance Amiga, so cant use Quake.

Out of curiosity, I assume this require FPU for good performace.
Is it possible to compile without FPU requirement? The reason why I ask is because Im soon a Vampire owner, like many. And for now there isnt a FPU included in the FPGA (will probarly change eventually).
 

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show only replies by Cosmos Amiga
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #2 on: May 24, 2016, 12:34:02 PM »
Quote from: Niding;809080
Is it possible to compile without FPU requirement?

Sorry, an Fpu is absolutly required !

And you need Warp3D too !

Offline Xebec

  • Newbie
  • *
  • Join Date: May 2016
  • Posts: 13
    • Show only replies by Xebec
Re: New Quake2 68k faster version for 68040/68060
« Reply #3 on: May 24, 2016, 12:34:08 PM »
Quote from: Niding;809080
Great work as usual :)

Sadly I still only have a low performance Amiga, so cant use Quake.

Out of curiosity, I assume this require FPU for good performace.
Is it possible to compile without FPU requirement? The reason why I ask is because Im soon a Vampire owner, like many. And for now there isnt a FPU included in the FPGA (will probarly change eventually).


Just FYI - per the Apollo team they said that a version of the FPU is about for weeks away for vampire (current version ).
 

Offline Niding

  • Hero Member
  • *****
  • Join Date: Sep 2004
  • Posts: 566
    • Show only replies by Niding
Re: New Quake2 68k faster version for 68040/68060
« Reply #4 on: May 24, 2016, 02:35:38 PM »
@Cosmos and Xebec

Thanks for reply! And sounds promising. Quake 1 is my favourite other than Quake Arena.
 

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show only replies by Cosmos Amiga
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #5 on: May 25, 2016, 12:00:56 PM »
Bad news : the main program Quake2 was recompiled with the gcc -O2 option and I got some slow down during the game and the demo...

So, be carefull, the -O2 on gcc 2.95.3-4 seems buggy...

Offline kolla

Re: New Quake2 68k faster version for 68040/68060
« Reply #6 on: May 25, 2016, 12:47:52 PM »
Quote from: Xebec;809082
Just FYI - per the Apollo team they said that a version of the FPU is about for weeks away for vampire (current version ).


And what FPU will that be? 881/882, 040, 060, all of them, none of them?
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show only replies by Cosmos Amiga
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #7 on: May 25, 2016, 01:00:35 PM »
Quote from: Cosmos;809148
Bad news : the main program Quake2 was recompiled with the gcc -O2 option and I got some slow down during the game and the demo...

So, be carefull, the -O2 on gcc 2.95.3-4 seems buggy...

I confirm : be carefull with the -O2 option, buggy for sure !

I recompiled ref_gl.dll with -O1, and I get now 12.4 fps instead of 11.9

Offline apj

Re: New Quake2 68k faster version for 68040/68060
« Reply #8 on: May 25, 2016, 07:45:29 PM »
Quake 2 is a great benchmark for tesing compilers.
Could you compile with gcc 3.4.0 so we know speed difference between them?

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show only replies by Cosmos Amiga
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #9 on: May 26, 2016, 05:29:24 AM »
Quote from: apj;809171
Quake 2 is a great benchmark for tesing compilers.
Could you compile with gcc 3.4.0 so we know speed difference between them?

I have a compilation : I'll try asap on my 1260...

EDIT : no, 11.7 fps...

Offline pixie

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 480
    • Show only replies by pixie
    • http://savoc.tripod.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #10 on: May 26, 2016, 10:25:00 AM »
It seems it's now time to try it on Vampire II ;)


pixie- writing from a paradise called Portugal
 

Offline Niding

  • Hero Member
  • *****
  • Join Date: Sep 2004
  • Posts: 566
    • Show only replies by Niding
Re: New Quake2 68k faster version for 68040/68060
« Reply #11 on: May 26, 2016, 10:55:28 AM »
Quote from: pixie;809193
It seems it's now time to try it on Vampire II ;)

:) we shouldnt get carried away. Its afterall in its development phase.
Last report I heard regarding the FPU, it only worked with SYSINFO, but thats been the case with everything.

They will squash bugs and add missing instructions. So eventually it will be working with Quake (I hope).
From what has been said, ATLEAST 4 weeks until they are done with the FPU support.
« Last Edit: May 26, 2016, 11:31:28 AM by Niding »
 

Offline wawrzon

Re: New Quake2 68k faster version for 68040/68060
« Reply #12 on: May 26, 2016, 11:55:27 AM »
Quote from: Cosmos;809190


gcc 2.95.3-4 -O2 11.9 fps

gcc 2.95.3-4 -O1 12.4 fps

gcc 3.4.0      -?   11.7 fps


is this correct? so the differences move almost within 5% range. i wonder where is this famous inefficiency later gcc versions were blamed for in comparison to 2.9.x. or maybe there was a practice of particularly structured code that compiled better on 2.9 in the old days? even if so it wouldnt affect ports or more contemporary software.

how about to try some 4.x.x version? afair it was again more efficient than 3.x.x. there should be at least 4.5.0 by bernd rosch floating around somewhere?
 

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show only replies by Cosmos Amiga
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #13 on: May 26, 2016, 12:28:49 PM »
Quote from: wawrzon;809197
is this correct? so the differences move almost within 5% range. i wonder where is this famous inefficiency later gcc versions were blamed for in comparison to 2.9.x. or maybe there was a practice of particularly structured code that compiled better on 2.9 in the old days? even if so it wouldnt affect ports or more contemporary software.

how about to try some 4.x.x version? afair it was again more efficient than 3.x.x. there should be at least 4.5.0 by bernd rosch floating around somewhere?

When I compile the main Quake2 program, I got small freeze during the game or crash using -O2...

Smell bugs, certainly float issues I guess...

Where to download the 4.5.0 ?

Offline wawrzon

Re: New Quake2 68k faster version for 68040/68060
« Reply #14 on: May 26, 2016, 04:47:00 PM »
Quote from: Cosmos;809201
Where to download the 4.5.0 ?


see it here:

http://amiga.sourceforge.net/phps/logger.php?download=GCC-4.5.0-m68k-amigaos-cygwin.7z

btw. its for cygwin, dunno if it works on some regular x86 linux, never tried. used it with amidevcpp package years ago..
----------------------------------------------------------------
as an option, even though it sounds a bit far fetched, i think it should be possible to simply build aros68k toolchain, which contains 4.6.4 as default, there is also a patch for 6.x.x available, but it didnt always produce the right code, bigger binaries being a bit smaller in comparison. having amiga-m68k target installed it should likely be possible to compile with it a regular amiga program that doesnt depend on aros libs. resulting binary would be in elf format, but it can be converted to hunk with aros elf2hunk tool. voila! never tried it, but it should actually work.. i guess..
« Last Edit: May 26, 2016, 04:56:11 PM by wawrzon »