Comparing PB4.0 vs zSprite for BlitzMax....

Advanced game related topics
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Yes, that'll be it for sure because it's only doing a delay(1) if the window message is 0. So moving the mouse keeps the delay from happening because there is always a window message.
BERESHEIT
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:Yes, that'll be it for sure because it's only doing a delay(1) if the window message is 0. So moving the mouse keeps the delay from happening because there is always a window message.
Ok, I will fix this behavior.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

The last one (v0.3):
Removed the DrawText().
Fixed the Delay(1) problem.


You can remove the last 100 sprites (Right mouse button) too.

Tell me your FPSes please

Link:
http://people.freenet.de/icesoft/z3SpriteVsPB.zip
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

65 fps @500, 45 fps @1000. Good work!
BERESHEIT
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:65 fps @500, 45 fps @1000. Good work!
Thanks.
And how fast is zSprite?

Here are the finished version (v0.4)
[ADD] Right mouse set the FPS(min) value to 99999.

Link:
http://people.freenet.de/icesoft/z4SpriteVsPB.zip
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

And how fast is zSprite?
Oh yeah, it's a comparison. I catch on fast, don't I? :lol:

For the Blitz version: 55 fps @500, 27 fps @1000. Significantly slower.
BERESHEIT
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:For the Blitz version: 55 fps @500, 27 fps @1000. Significantly slower.
And that is the next reason why I bought PB ;-)

I belive this comparison is better for PB as a small donation (from me) ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

To get down to 27 fps, which is the rate @1000 for Blitz, I have to put 1700 sprites on the PB version! That's 70% better performance under heavy load.
BERESHEIT
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:To get down to 27 fps, which is the rate @1000 for Blitz, I have to put 1700 sprites on the PB version! That's 70% better performance under heavy load.
Belive me the percent will be more and more better if you add more and more sprites into the PB version.

Now I have to wait for the OpenGL 'nativ' SUBSYSTEM for PB.
And than we will compare it again, right?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Trying to keep the FPS about the same, I got

Blitz: 25FPS -> 500 sprites (about 49% CPU utilisation)
PB: 27FPS -> 600 sprites (about 43% CPU utilisation)

P4 laptop 3GHz & latest versions of test programs.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

mskuma wrote:Trying to keep the FPS about the same, I got

Blitz: 25FPS -> 500 sprites (about 49% CPU utilisation)
PB: 27FPS -> 600 sprites (about 43% CPU utilisation)

P4 laptop 3GHz & latest versions of test programs.
The version has a bigger sprite size!
Because of this...the FPS will be slower.

(It is not the version which was tested from @netmaestro and the 70% result)
Maybe netmastro will retest this version again?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

newest test file, 2000 sprites, 52 in fps.

Blitz version handles this WAY worse. (50% less fps or so.)
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

thefool wrote:newest test file, 2000 sprites, 52 in fps.
Blitz version handles this WAY worse. (50% less fps or so.)
I like this results ;-)
Maybe a new OpenGL driver will improve the Blitz result.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Post by pjay »

IceSoft wrote:
The version has a bigger sprite size!
Because of this...the FPS will be slower.

(It is not the version which was tested from @netmaestro and the 70% result)
Maybe netmastro will retest this version again?
The sprites are really the same size..... trim the blank space off of the original.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

pjay wrote: The sprites are really the same size..... trim the blank space off of the original.
Of course! But you will find not so many small size sprites as was on the previous versions.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply