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

Advanced game related topics
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Post by pjay »

Good Job!

Haven't you slept..... :?: :D
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 »

This version has fps's similar to the last version but for some reason looks smoother and more professional. I think it's of a quality that, when viewed in comparison to the Blitzmax demo, is a really good advertisement for PureBasic. Even at 1000 sprites the movement is nice and smooth, while the Blitz one is much slower and jerkier.
BERESHEIT
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

PB version is, as netmaestro says, better in quality and smoothness.

but i dont find the optimized version better :?
and if it is, we talk only 1 sprite. Another thing; pb version is directx, blitz is ogl. Imho opengl is faster, so lets see...


if you would just share the source so everyone could optimize :P
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Post by pjay »

I took the time to attempt converting this to OpenGL & it's running pretty well here, mostly over twice the speed of ZSprite.

@ 100:
ZSprite: 332 fps
ZSpritevsPB0.7: 355 fps
OpenGL: 624 fps

@ 1000:
ZSprite: 37 fps
ZSpritevsPB0.7: 45 fps
OpenGL: 92 fps

Whilst ZSprite does lag behind, we should remember that it's an engine, so it has to do a lot more processing in the background (i'm not saying it couldn't be faster though!)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

UPLOAD :D
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Post by pjay »

I can e-mail & maybe you'd host????
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Post by pjay »

File:1->PBlimp.rar
Image

Hopefully that's done the job.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Very nice and VERY fast!

Overrules the blitz version in a single wink.
Is it assembly optimized or anything, or just pure pb and some ogl functions?

(and would YOU care to share the source for your pb-mates?)
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 »

Quite impressive, was it done using PB 4 and the OGL subsystem?
BERESHEIT
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Post by pjay »

It's just PB 3.94 & OpenGL. I'm not entirely sure assembly optimization would help as it's the rendering that takes time.

It was *mostly* made from cuts & pastes from these very forums (much of which dated back to 2002!)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

you can nearly always make something faster :)
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

I only get 32 fps for 700 sprites on PB using 50% cpu.

On Blitzmax I get 55 fps for 700 but using 100% cpu.

I only have an nvidia gf4 ti4600.

So blitz wins easily.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

v0.8 uploaded

[ADD] Speed Level 2 implemented.

Compare FPS and CPU time with the Blitz zSprite demo and with the nativ OpenGL PB version again :wink:

File:1->zSpriteVsPB_test1.zip
Image
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 »

pjay wrote: Whilst ZSprite does lag behind, we should remember that it's an engine, so it has to do a lot more processing in the background (i'm not saying it couldn't be faster though!)
Don't forget: PB is 'also an engine' for DirectX 7. :wink:
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply