Page 1 of 4

PB with nativ OpenGL vs PureBasic 4.0 Sprite3D

Posted: Wed May 03, 2006 9:24 am
by IceSoft
Here are a new challenge for PB:
OpenGL vs PureBasic

Comparing:
FPS and CPU consumption

The test it like this one (but without random stuffs):
http://www.purebasic.fr/english/viewtopic.php?t=21474


Rules:
Source:
blimp4.bmp
Events:
LMB: + 50 sprites
RMB: - 50 sprites

All sprites have to be shown on the screen.
All sprites have another size: Orginal size / 100 * n (n is counting 1...50)
All sprites are rotating
All sprites are moving: but only on the screen (not out of screen)

@pjay is informed and will put his adapt OpenGL version here.
(But I have seen this version and I can tell you: I LIKE PB)



Here the PureBasic version:
OpenGLvsPB.zip
Image

Posted: Wed May 03, 2006 11:16 am
by SoulReaper
I got 800 on screen :shock: in 65 frames a sec :)
before it started to drop :cry: on a radeon 9800 pro.

very good :)

Regards
Kevin :wink:

Posted: Wed May 03, 2006 11:18 am
by IceSoft
SoulReaper wrote:very good :):
Thanks.
Wait for the compare with OpenGL...
..and you will say 'very good' again ;-)

Posted: Wed May 03, 2006 11:19 am
by IceSoft
SoulReaper wrote:I got 800 on screen :shock: in 65 frames a sec :)
before it started to drop :cry: on a radeon 9800 pro.

very good :)

Regards
Kevin :wink:
How was the CPU consumption?

Posted: Wed May 03, 2006 12:06 pm
by SoulReaper
I have an xp 1800

it seems to be on 2% with 800 sprites, strange i guess the gfx card is doing all the work.

I double checked it and it remains the same at 2%

Regards
Kevin :wink:

Posted: Wed May 03, 2006 12:16 pm
by DarkDragon
Sorry, but you can't compare PureBasic with OpenGL, as PureBasic is a Engine and OpenGL is a renderer. And since PB 4 you have the OpenGL subsystem which doesn't work very well.

Posted: Wed May 03, 2006 12:49 pm
by pjay
For comparison, here's the OpenGL version.

File:1->PBlimp3b.rar
Image

Press 'B' whilst running to change from edited sprite to original & bi-linear original.

Posted: Wed May 03, 2006 1:51 pm
by DarkDragon
pjay wrote:For comparison, here's the OpenGL version.

File:1->PBlimp3b.rar
Image

Press 'B' whilst running to change from edited sprite to original & bi-linear original.
Crashes :? Are you sure you know how to use OpenGL?

Posted: Wed May 03, 2006 2:01 pm
by Fred
DarkDragon wrote:Are you sure you know how to use OpenGL?
What's the point of this comment ? Please stop.

Posted: Wed May 03, 2006 2:09 pm
by DarkDragon
Fred wrote:
DarkDragon wrote:Are you sure you know how to use OpenGL?
What's the point of this comment ? Please stop.
I made this fault in my early years, too, until I got a computer with a low gfx card and I can work now for lower end systems, not only the higher ones. The higher ones don't crash anymore and are more error-tollerant. That's why everyone should work on lower ends.

Posted: Wed May 03, 2006 2:20 pm
by IceSoft
DarkDragon wrote:Crashes :? Are you sure you know how to use OpenGL?
Copy the OpenGL version into the folder of the PB version.
The RAR file has not the blimp4.bmp in it

Posted: Wed May 03, 2006 2:23 pm
by DarkDragon
IceSoft wrote:
DarkDragon wrote:Crashes :? Are you sure you know how to use OpenGL?
Copy the OpenGL version into the folder of the PB version.
The RAR file has not the blimp4.bmp in it
Now it runs, but doesn't show anything, just a blue screen. No FPS and nothing.

Posted: Wed May 03, 2006 2:26 pm
by IceSoft
DarkDragon wrote:
IceSoft wrote:
DarkDragon wrote:Crashes :? Are you sure you know how to use OpenGL?
Copy the OpenGL version into the folder of the PB version.
The RAR file has not the blimp4.bmp in it
Now it runs, but doesn't show anything, just a blue screen. No FPS and nothing.
Yes you are right. (He was on a hurry)
But @pjay is now in his bed ;-) He have to work this night.
DarkDragon wrote:Sorry, but you can't compare PureBasic with OpenGL, as PureBasic is a Engine and OpenGL is a renderer. And since PB 4 you have the OpenGL subsystem which doesn't work very well.
Sorry, but yes I can!
And no I did not using the PB 4.0 OpenGL subsystem.

Posted: Wed May 03, 2006 2:33 pm
by DarkDragon
Can someone explain me more exactly what "Comparison between PureBasic and OpenGL" means? I don't understand it ... :? PureBasic has nothing to do with OpenGL, you can just control it in PureBasic.

Posted: Wed May 03, 2006 2:37 pm
by IceSoft
DarkDragon wrote:Can someone explain me more exactly what "Comparison between PureBasic and OpenGL" means? I don't understand it ... :? PureBasic has nothing to do with OpenGL, you can just control it in PureBasic.
I see you are a german man. ;-)

Here we comparing:

1) OpenGL nativ function called with PB 3.94
2) PB4.0 Sprite3D functions

Is it this what you want to read?