Page 1 of 5
Comparing PB4.0 vs zSprite for BlitzMax....
Posted: Thu Apr 27, 2006 6:43 pm
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()
Posted: Thu Apr 27, 2006 9:24 pm
by va!n
PB is the winner!!
Posted: Thu Apr 27, 2006 9:46 pm
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.
Posted: Thu Apr 27, 2006 10:02 pm
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

Posted: Thu Apr 27, 2006 10:20 pm
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

Posted: Thu Apr 27, 2006 10:23 pm
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

Which one? PB or BlitzMax with zSprite?
Posted: Thu Apr 27, 2006 10:49 pm
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?)
Posted: Fri Apr 28, 2006 8:02 am
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.
Posted: Fri Apr 28, 2006 8:26 am
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.
Posted: Fri Apr 28, 2006 8:32 am
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
Posted: Fri Apr 28, 2006 8:35 am
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

Posted: Fri Apr 28, 2006 8:43 am
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

lol...
Posted: Fri Apr 28, 2006 9:58 am
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
Posted: Fri Apr 28, 2006 10:08 am
by netmaestro
@700 sprites: 55 if mouse is moving constantly, drops to 32 if I stop moving the mouse.
Posted: Fri Apr 28, 2006 10:10 am
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?