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

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

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

Post by IceSoft »

I comparing PB vs zSprite for BlitzMax.

Result:
Looks good for PB.
Try it (if you want)!

http://people.freenet.de/icesoft/z1SpriteVsPB.zip 119 kB

Link to zSprite
http://www.zac-interactive.dk/tools/zsp ... eDemos.zip

Compare it with the zTest1.exe.
Compare also the CPU-Performance!

And let me know about your result.
I think you will love PB a little bit more ;-)

And I have not used the best (fast) way:
I used DrawText() which is not so fast as GLDrawText()
Last edited by IceSoft on Fri Apr 28, 2006 1:01 pm, edited 1 time in total.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

PB is the winner!!
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
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 »

The PB one looks good, nice job. But I can't get the Blitz demos to run on my computer, the exes just open a blank window and hang.
BERESHEIT
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:The PB one looks good, nice job. But I can't get the Blitz demos to run on my computer, the exes just open a blank window and hang.
Sorry! The Blitz demo is not written by me.
'...and hang' -> One more reason to use PB ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

netmaestro wrote:The PB one looks good, nice job. But I can't get the Blitz demos to run on my computer, the exes just open a blank window and hang.
I have WinXP Pro SP2 AMD 64 3000+, 512, ATI 9600 Radeon 64mb, and it works here.
But 100% CPU used 8)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Psychophanta wrote:
netmaestro wrote:The PB one looks good, nice job. But I can't get the Blitz demos to run on my computer, the exes just open a blank window and hang.
I have WinXP Pro SP2 AMD 64 3000+, 512, ATI 9600 Radeon 64mb, and it works here.
But 100% CPU used 8)
Which one? PB or BlitzMax with zSprite?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

@netmaestro:
have you unpacked all stuff (exe and data stuff) to one directory? or have you just only unpacked the exe (possible?)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
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 »

I reinstalled my video driver and it works now. On the PB test, there is a problem. At the higher sprite counts it slows down but if you move the mouse around it speeds up a lot - are you using some form of WaitWindowEvent()? WindowEvent() without a wait might be better, as the mouse moving creating window events shouldn't speed things up.
BERESHEIT
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

IceSoft wrote:Which one? PB or BlitzMax with zSprite?
The BlitzMAx ones eats 100%CPU with 100, 200, 300,... sprites.
But the PB one eats about 90%CPU with 300 sprites.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:I reinstalled my video driver and it works now. On the PB test, there is a problem. At the higher sprite counts it slows down but if you move the mouse around it speeds up a lot - are you using some form of WaitWindowEvent()? WindowEvent() without a wait might be better, as the mouse moving creating window events shouldn't speed things up.
I do not using WaitWindowEvent()

Here the code snippet:

Code: Select all

Repeat
  event =  WindowEvent() 
  Select event
    Case 0
      Delay(1)
    Case #PB_Event_CloseWindow
      CloseWindow(0)
      End
     Case #WM_LBUTTONDOWN 
      ; Add the next 100 sprites
   EndSelect
   ;Draw all sprites and the rest of the screen (Text)
forever
end
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 »

Psychophanta wrote:
IceSoft wrote:Which one? PB or BlitzMax with zSprite?
The BlitzMAx ones eats 100%CPU with 100, 200, 300,... sprites.
But the PB one eats about 90%CPU with 300 sprites.
One reason why I bought PB :wink:
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

IceSoft wrote:
Psychophanta wrote:
IceSoft wrote:Which one? PB or BlitzMax with zSprite?
The BlitzMAx ones eats 100%CPU with 100, 200, 300,... sprites.
But the PB one eats about 90%CPU with 300 sprites.
One reason why I bought PB :wink:
lol...
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

The last one (v0.2):
Removed the DrawText().
You can remove the last 100 sprites (Right mouse button) too.

Tell me your FPSes please ;-)

Link:
http://people.freenet.de/icesoft/zSpriteVsPB.zip
Last edited by IceSoft on Fri Apr 28, 2006 10:09 am, edited 1 time in total.
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 »

@700 sprites: 55 if mouse is moving constantly, drops to 32 if I stop moving the mouse.
BERESHEIT
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

netmaestro wrote:@700 sprites: 55 if mouse is moving constantly, drops to 32 if I stop moving the mouse.
I do not known why it is as you told it (See the code snippet)

But I think it is the delay(1) command?

Maybe @Fred as an idea?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply