Advanced game related topics
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Thu Apr 27, 2006 6:43 pm
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
Posts: 1104 Joined: Wed Apr 20, 2005 12:48 pm
Post
by va!n » Thu Apr 27, 2006 9:24 pm
PB is the winner!!
va!n aka Thorsten
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
netmaestro
PureBasic Bullfrog
Posts: 8451 Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada
Post
by netmaestro » Thu Apr 27, 2006 9:46 pm
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
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Thu Apr 27, 2006 10:02 pm
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,...
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Thu Apr 27, 2006 10:20 pm
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
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Thu Apr 27, 2006 10:23 pm
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
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
Posts: 1104 Joined: Wed Apr 20, 2005 12:48 pm
Post
by va!n » Thu Apr 27, 2006 10:49 pm
@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,
netmaestro
PureBasic Bullfrog
Posts: 8451 Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada
Post
by netmaestro » Fri Apr 28, 2006 8:02 am
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
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Fri Apr 28, 2006 8:26 am
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.
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Fri Apr 28, 2006 8:32 am
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,...
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Fri Apr 28, 2006 8:35 am
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
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Joakim Christiansen
Addict
Posts: 2452 Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:
Post
by Joakim Christiansen » Fri Apr 28, 2006 8:43 am
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
lol...
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Fri Apr 28, 2006 9:58 am
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,...
netmaestro
PureBasic Bullfrog
Posts: 8451 Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada
Post
by netmaestro » Fri Apr 28, 2006 10:08 am
@700 sprites: 55 if mouse is moving constantly, drops to 32 if I stop moving the mouse.
BERESHEIT
IceSoft
Addict
Posts: 1682 Joined: Thu Jun 24, 2004 8:51 am
Location: Germany
Post
by IceSoft » Fri Apr 28, 2006 10:10 am
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,...