English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 04 July 2024, 11:34   #61
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,441
Quote:
Originally Posted by arti View Post
Nice, looking forward for it.

If you would enable fps counter in gears demo using your Mesa code we could compare performance.
Yep okay, should be easy to do.

Update:

Here you go, please compare this to the old 68k Mesa and your GLUT approach.

The attached it as optimized as I can get it without introducing glitches, it runs at 12 fps for me on WinUAE (old laptop), with glitches I can get that up to 17 fps.

For a fair comparison, make sure that you use 640x480 and 16 bit color depth (full screen).

I've attached the source code that made the demo (basically standard Gears code without GLUT).

Actually, let me try and get those optermization flags working without causing the glitches...

okay, now uploaded an optermized version without glitches.
Attached Files
File Type: c gears.c (9.2 KB, 5 views)
File Type: lha MesaGearsNova.lha (1.14 MB, 7 views)

Last edited by NovaCoder; 05 July 2024 at 06:35.
NovaCoder is offline  
Old 05 July 2024, 09:52   #62
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 677
I can't get fullscreen in glut so I compiled SDL version.

Your code 97 fps,
SDL version 367 fps.

Tested on WinUAE with Wazp.

I assume that AmigaMesa is optimised a lot for 68k.

sdlgears.lha
arti is offline  
Old 05 July 2024, 10:02   #63
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,480
I was of the understanding that Wazp in WinUAE will render outside the emulated 68k environment?
alexh is offline  
Old 05 July 2024, 10:13   #64
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,441
Quote:
Originally Posted by alexh View Post
I was of the understanding that Wazp in WinUAE will render outside the emulated 68k environment?

Yep you have to be careful and compare like to like, mine is pure software rendering (no hardware acceleration in winuae including Wazp3D)

Last edited by NovaCoder; 05 July 2024 at 10:37.
NovaCoder is offline  
Old 05 July 2024, 11:01   #65
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 677
Yeah, I forgot that you are testing Mesa 4.1 in software.
Maybe someone can test as I'll be home later in the evening today.

It would be interesting if it works with Wipeout. I've already tried TinyGL and PortableGL software renders without luck.

Last edited by arti; 05 July 2024 at 11:09.
arti is offline  
Old 05 July 2024, 12:43   #66
jeff b00toNic
Registered User
 
jeff b00toNic's Avatar
 
Join Date: Nov 2011
Location: Arnsberg Germany
Age: 45
Posts: 210
Interesting, I also get 120 frames in 9.630 seconds at 12.461 FPS on my Amiga.
Could it be that your laptop is as fast as a PiStorm with an RPi 4 at standard clock speed, or is the speed perhaps limited?
jeff b00toNic is offline  
Old 05 July 2024, 13:00   #67
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,441
Quote:
Originally Posted by jeff b00toNic View Post
Interesting, I also get 120 frames in 9.630 seconds at 12.461 FPS on my Amiga.
Could it be that your laptop is as fast as a PiStorm with an RPi 4 at standard clock speed, or is the speed perhaps limited?
Yep interesting, I think that's just a coincidence though. It shouldn't be limited (only by the refresh rate)
NovaCoder is offline  
Old 05 July 2024, 13:02   #68
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,441
Quote:
Originally Posted by arti View Post
Yeah, I forgot that you are testing Mesa 4.1 in software.
Maybe someone can test as I'll be home later in the evening today.

It would be interesting if it works with Wipeout. I've already tried TinyGL and PortableGL software renders without luck.
No worries, thanks for trying
NovaCoder is offline  
Old 05 July 2024, 13:59   #69
jeff b00toNic
Registered User
 
jeff b00toNic's Avatar
 
Join Date: Nov 2011
Location: Arnsberg Germany
Age: 45
Posts: 210
Quote:
Originally Posted by arti View Post
Maybe someone can test as I'll be home later in the evening today.
With your version, I get 158 frames in 5.015 seconds, at 31.5055 FPS.
jeff b00toNic is offline  
Old 05 July 2024, 19:00   #70
klx300r
Registered User
 
klx300r's Avatar
 
Join Date: Oct 2007
Location: ManCave, Canada
Posts: 1,656
Thumbs up

with my PiStorm32-3A+

@ NovaCoder

120 frames in 14.476 seconds=8.290 FPS

@ arti

103 frames in 5.018 seconds=20.5261 FPS
klx300r is offline  
Old 05 July 2024, 21:06   #71
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 677
Quote:
Originally Posted by klx300r View Post
with my PiStorm32-3A+

@ NovaCoder

120 frames in 14.476 seconds=8.290 FPS

@ arti

103 frames in 5.018 seconds=20.5261 FPS

Is that with paraj warp3d.library? If so my version will be faster because it's partially accelerated by Pi's GPU.
arti is offline  
Old 05 July 2024, 21:35   #72
klx300r
Registered User
 
klx300r's Avatar
 
Join Date: Oct 2007
Location: ManCave, Canada
Posts: 1,656
Thumbs up

Quote:
Originally Posted by arti View Post
Is that with paraj warp3d.library? If so my version will be faster because it's partially accelerated by Pi's GPU.

ah cool where can I get your warp3d.library
klx300r is offline  
Old 05 July 2024, 22:02   #73
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 677
It was made by paraj from Pistorm discord channel.

Warp3D.zip

Tested this time on Pistorm with Wazp
Nova 8fps
SDL 12fps (with paraj library = 34 fps)

It needs 32bit depth in code.

sdlgears-32bit.zip

Last edited by arti; 05 July 2024 at 22:18.
arti is offline  
Old 06 July 2024, 00:58   #74
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,441
Quote:
Originally Posted by arti View Post
It was made by paraj from Pistorm discord channel.

Attachment 82632

Tested this time on Pistorm with Wazp
Nova 8fps
SDL 12fps (with paraj library = 34 fps)

It needs 32bit depth in code.

Attachment 82633
I didn't know that piStorm already had hardware acceleration available, that means there isn't much point in a pure software implementation of Mesa I guess.

Last edited by NovaCoder; 06 July 2024 at 01:38.
NovaCoder is offline  
Old 06 July 2024, 01:42   #75
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 677
Quote:
Originally Posted by NovaCoder View Post
I didn't know that piStorm already had hardware acceleration available, that means there isn't much point in a pure software implementation of Mesa.
That's not even full hardware acceleration. Game still runs in software mode but uses Pi GPU at some point.


Quote:
It's interesting that the old Mesa you used for SDL is faster than mine, maybe it's using assembler (mine is just standard C code).

Yeah, most likely. Enhancing Amiga Mesa code with newer versions of Mesa would make more sense I guess.

BTW PortableGL which is OpenGL 3.3 ish gives also 8 fps.
arti is offline  
Old 06 July 2024, 06:45   #76
klx300r
Registered User
 
klx300r's Avatar
 
Join Date: Oct 2007
Location: ManCave, Canada
Posts: 1,656
@ arti

with warpd3d.library and sdlgears-32bit

88 frames in 5.026 seconds=17.509 FPS
klx300r is offline  
Old 06 July 2024, 07:34   #77
tomcat666
Retro Freak
 
tomcat666's Avatar
 
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,668
Pistorm32 CM4 2.2Ghz (no HW accel whatsoever, so Wazp3d I guess):

Nova 17.693 fps (runs full screen)
sdlgears 42.8458 fps (runs full screen)
sdlgears-32bit 40.3274 fps (runs in a window)

All have correct colours
tomcat666 is offline  
Old 06 July 2024, 09:16   #78
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 677
Quote:
Originally Posted by klx300r View Post
@ arti

with warp3d.library and sdlgears-32bit

88 frames in 5.026 seconds=17.509 FPS

Should be faster not slower. Have you renamed it to warp3d.library?
arti is offline  
Old 06 July 2024, 11:22   #79
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,111
Quote:
Originally Posted by NovaCoder View Post
I didn't know that piStorm already had hardware acceleration available, that means there isn't much point in a pure software implementation of Mesa I guess.
PiStorm doesn't have hardware acceleration. That's a test that only runs on a specific model of Pi, intended to see if it can be done and uses the Pi's shader processor to hand off some of the load from the 68k.

It's not being developed further and is a dead end tech-wise. There is currently no full Pi OpenGL (or otherwise) hardware solution actively in development.
Dunny is online now  
Old 06 July 2024, 16:29   #80
klx300r
Registered User
 
klx300r's Avatar
 
Join Date: Oct 2007
Location: ManCave, Canada
Posts: 1,656
Quote:
Originally Posted by arti View Post
Should be faster not slower. Have you renamed it to warp3d.library?
Yes I did. Is the lib specific to the Pi4B models maybe?
klx300r is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
AmiQuake new 68k Quake Port for AGA/RTG NovaCoder News 465 27 May 2024 10:12
Chocolate Doom port to 68K RTG NovaCoder News 34 22 February 2024 08:34
Grafx2 for Amiga OS 3.X (68K RTG) PerspexSphinx support.Apps 4 14 February 2022 07:17
Best open source, mod-able RTG-friendly FPS Engine running on 68k? eXeler0 Amiga scene 48 10 August 2016 23:38
68k + Picasso (RTG) Demos ?? Amiten Amiga scene 14 27 August 2013 17:39

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:01.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.20872 seconds with 16 queries