PB with nativ OpenGL vs PureBasic 4.0 Sprite3D

Advanced game related topics
User avatar
IceSoft
Addict
Addict
Posts: 1699
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

PB with nativ OpenGL vs PureBasic 4.0 Sprite3D

Post 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
Last edited by IceSoft on Wed May 03, 2006 2:54 pm, edited 2 times in total.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post 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:
User avatar
IceSoft
Addict
Addict
Posts: 1699
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

SoulReaper wrote:very good :):
Thanks.
Wait for the compare with OpenGL...
..and you will say 'very good' again ;-)
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1699
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post 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?
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post 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:
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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.
bye,
Daniel
pjay
Enthusiast
Enthusiast
Posts: 282
Joined: Thu Mar 30, 2006 11:14 am

Post 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.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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?
bye,
Daniel
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

DarkDragon wrote:Are you sure you know how to use OpenGL?
What's the point of this comment ? Please stop.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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.
bye,
Daniel
User avatar
IceSoft
Addict
Addict
Posts: 1699
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post 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
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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.
bye,
Daniel
User avatar
IceSoft
Addict
Addict
Posts: 1699
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post 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.
Last edited by IceSoft on Wed May 03, 2006 2:30 pm, edited 1 time in total.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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.
bye,
Daniel
User avatar
IceSoft
Addict
Addict
Posts: 1699
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post 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?
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply