OpenGL DLL for Bennu (Sandman's Worklog)

Crossplatform OpenGL for Bennu. RSS Feed
Worklogs > Sandman's Worklogs > OpenGL DLL for Bennu > Sangine vs Fenix: speedtest

Sangine vs Fenix: speedtest

Yeah so this is a speed comparison between Sangine (Sand Engine, shoot me) and Fenix. The test relies (heavily) on scaling, rotation and additive/subtractive blending, something very slow in Fenix. *grins*

Anyway, download here; start the batchfiles to start the tests, taking 10 seconds each.

This is a sneak preview, I'll fully document and do all the things necessary when the time comes. Also for now there's only a win32 preview.

Functions implemented:
* set_mode() - use set_mode(width,height,depth,2), the 2 tells the dll to use opengl (only mode implemented now!)
* load_png() - also load_image() (loads image of multiple types)
* san_update() - update the screen, call before frame; in main loop
* put()
* xput() - not region param, I do have region support implemented, but there's no region system yet
* map_put()
* map_xput()
* map_xputnp()

Excuse the lack of better documentation or process drawing support, those will come in time. :)

Sandman
(Posted on July, 16th 2008, 01:52)

Comments


Rincewind said:
The requested URL /sangine-speedcomparison-v1.zip was not found on this server.
(Posted on July, 16th 2008, 12:32)


Sandman said:
Fixed! Thanks.
(Posted on July, 16th 2008, 14:07)


Rincewind said:
The Fenix test gives me an FPS of 5.8, the Bennu test with 'Sangine' gives me "bgdi.exe has encountered a problem and needs to close. We are sorry for the inconvenience." In addition to that I see an empty SDL_app window and cmd.exe reads "Depth: 32".
(Posted on July, 16th 2008, 14:55)


Sandman said:
Are you running Vista? Some other info about your system? Videocard?
(Posted on July, 16th 2008, 15:01)


Rincewind said:
Still the same system as always, Windows XP SP2, Pentium M 1.73 Ghz, 2GB DDR2, Ati Mobility Radeon X700 128 MB.

Did you try it on a pc other than your own?
(Posted on July, 16th 2008, 15:03)


Sandman said:
Yes, worked fine on Juan's and on Square's. I think your videocard does not support a certain OpenGL feature, I will have to test on this. Could you pastebin the output of glewinfo.exe?
(Posted on July, 16th 2008, 15:08)


Rincewind said:
(Posted on July, 16th 2008, 15:16)


Sandman said:
Line 950: GL_EXT_framebuffer_object: OK [MISSING]
I think that's the culprit. I'll try to make it use a backup system (Have that already, but I guess it fails ;)). Now shopping ->
(Posted on July, 16th 2008, 15:25)


Eckolin said:
The Fenix test gives 6.7 fps, the Bennu test fails.
(Posted on July, 16th 2008, 17:02)


Sandman said:
Eckolin's videocard doesn't support OpenGL1.4, so it fails there.
(Posted on July, 16th 2008, 18:50)


yonni said:
6.54 for fenix
122.67 for Sangine

(Xp, P4 2.8GHz, 768MB RAM, nVidia 6200 256MB)
(Posted on July, 17th 2008, 18:45)


Sandman said:
Excellent; btw my own results are:
Fenix: 5fps
Bennu with Sangine: 275fps
(Posted on July, 17th 2008, 22:47)


Htbaa said:
Fenix: 5.344358
Bennu: Crash

Tested on Windows XP, Pentium 4 2,8Ghz, 1Gb Ram, 64Mb Intel Integrated Extreme II Graphics Card.
(Posted on July, 17th 2008, 23:17)


Htbaa said:
Fenix: 7.454304 (with VSync)
Fenix: 8.497724 (without VSync)
Bennu: 59.913132 (with VSync)
Bennu: 115.940094 (without VSync)

Tested on Windows Vista Home Premium, Intel Core 2 Duo E4500 @ 2.2Ghz, 2Gb Ram, 256Mb nVidia 8400 GS
(Posted on July, 17th 2008, 23:44)


Sandman said:
I'll implement pbuffers for rendering under Windows, so backwards compatibility will be roughly 8 years instead of 3. Should be enough. Older users can make use of the software system.
(Posted on July, 18th 2008, 03:31)


Eckolin said:
Sandman got the Sangine working for me in 5 tries. Results were:
Fenix 6
Bennu 40
(Posted on July, 21st 2008, 23:50)


hiperbou said:
Fenix: 5.2412
Bennu: 67.223427
DivGL: 84.553016 ;)
(Posted on July, 26th 2008, 01:10)


Sandman said:
After some talk with Hiperbou it became apparent his divGL (or hiperGL) does not support subtractive blending. This means an increase in FPS (because heavier stuff is not used) and the result is not the same. This explains the higher FPS result of divGL, but it's not a valid one.

Moreover, I've rewritten the thing in C, added some optimizations and the same test where I got 275FPS before I now got 325FPS, so that's a nice increase.

The current version is fully integrated in Bennu and I will post this version later.
(Posted on July, 26th 2008, 04:53)


Fiona said:
You are a beautiful person sandman.
(Posted on July, 30th 2008, 23:26)


Mezzmer said:
Sandman.

I will speak to you about this but is there a chance (now that OpenGL is fully intergrated in Bennu) that you could include an HQ filter?

Or some kind of smoothing video mode without loss of contrast? This would be a good addition.
(Posted on December, 1st 2008, 16:48)

Post New Comment

You must log in or register to post comments.

Worklogs > Sandman's Worklogs > OpenGL DLL for Bennu > Sangine vs Fenix: speedtest
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!