Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • 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 Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #1 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 Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #2 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 Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #3 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 Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #4 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 Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #5 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 Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #6 on: May 26, 2016, 05:00:18 PM »
Quote from: wawrzon;809213
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..


Sorry, not available !

Offline Cosmos AmigaTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 954
    • Show all replies
    • http://leblogdecosmos.blogspot.com
Re: New Quake2 68k faster version for 68040/68060
« Reply #7 on: May 27, 2016, 05:50:02 PM »
Ok, the new version is available here : http://warpclassic68k.blogspot.fr/p/blog-page.html

I'm now going to build this update with -O0 to see if it's better or not in terms of speedup...

I'm looking for some good C/C++ coders to find & fix gcc 3.4.0 bugs : every bugs can be found, only a question of will power !


:)