Page 2 of 3
Posted: Thu Feb 23, 2006 4:18 am
by MrMat
That looks really nice. The right click explosions are my favourite

Posted: Sun Feb 26, 2006 7:21 pm
by Intrigued
Works great on my laptop!
Debugger
off:
61 FPS with an average 52,000 particles
Debugger
on:
11 FPS with an average 49,000 particles
Note: Debugger on and right-clicks slowed my machine down to 2 FPS! Ack!
Thanks for sharing!
Posted: Mon Feb 27, 2006 12:48 am
by Shannara
Looking nice, with debugger enabled or disabled, it doesnt matter, 6,000 particles slow it down to 4FPS. Still, not bad at all

Got any more up your sleeves?
Posted: Mon Feb 27, 2006 2:14 am
by Joakim Christiansen
Shannara wrote:Looking nice, with debugger enabled or disabled, it doesnt matter, 6,000 particles slow it down to 4FPS. Still, not bad at all

Got any more up your sleeves?
6000 particles at 4 FPS, that's bad
I think the "engine" is fast enough as long as you don't right click...
And I really want to know how I can make it even faster
And everybody, thanks for the nice comments!

I'll see if I can make it into a nice screensaver with random fireworks someday.
Posted: Mon Feb 27, 2006 2:17 am
by Shannara
Well, for left click, the highest it has gotten is 56,000, and stayed around that, but thats at 46FPS. So not shabby

Posted: Fri Mar 03, 2006 6:29 am
by mskuma
@Joakim Christiansen: This is absolutely awesome & beautiful !! Works well on my Dell Optiplex. Thanks for sharing your code. I think my young kids will enjoy seeing this!
Posted: Fri Mar 10, 2006 5:24 am
by Joakim Christiansen
Should be able to make it faster by plotting directly in the screen buffer, but i'm not shure how to do that. (could anyone do that?)
And if there is many particles on the screen and I make new particles with mb-right it gets mysteriously slow..., but the mb-left particles don't slow down that way. I think it got something to do with linked list mess...

(but I think there might be a smart way to make it faster...?)
Posted: Fri Mar 10, 2006 10:51 am
by Hatonastick
Very nice.

Posted: Tue Jun 06, 2006 6:36 pm
by Joakim Christiansen
I just found a way to make it even faster, you can now hold down the right mousebutton without getting a slowdown!

I updated the first post with new code, go and get it!

Posted: Tue Jun 06, 2006 7:23 pm
by va!n
dont work here with v4 final... macro error on this line :roll:
Code: Select all
If PL_Particle()\Step > PL_Particle()\Duration Or PL_Particle()\X <0> #ScreenWidth-1 Or PL_Particle()\Y <0> #ScreenHeight-1
Posted: Tue Jun 06, 2006 7:28 pm
by Joakim Christiansen
va!n wrote:dont work here with v4 final... macro error on this line :roll:
Code: Select all
If PL_Particle()\Step > PL_Particle()\Duration Or PL_Particle()\X <0> #ScreenWidth-1 Or PL_Particle()\Y <0> #ScreenHeight-1
I'm also using PB4 final, I don't understand this
It gives you an error on that line if #ScreenHeight and #ScreenWidth is not declared.
Did you save both files and executed the example?
And yeah, I know it's stupid, but I don't know any other way of getting the screen width and height...
EDIT: Oh... I now see what you're talking about!
The forum messed up the code... bether download it then!
Posted: Tue Jun 06, 2006 10:04 pm
by aaron
Wow, works fantastic on my old 1 GHz Dell laptop.... drops to roughly 40 fps with 20000 particles (holding right mouse) and around 25 fps with 50000 particles (holding left mouse). Impressive.
Posted: Tue Jun 06, 2006 11:35 pm
by mskuma
Joakim, the latest update works well for me (Dell P4) - getting around 70 FPS. Thanks for making it available.
Posted: Tue Jun 06, 2006 11:39 pm
by Joakim Christiansen
mskuma wrote:Joakim, the latest update works well for me (Dell P4) - getting around 70 FPS. Thanks for making it available.

I'm now going to make a fireworks screensaver with random explosions, it's allready looking neat!
Posted: Wed Jun 07, 2006 3:39 am
by mskuma
going to make a fireworks screensaver with random explosions
Joakim, bring it on! please let us have a look!:)
BTW something weird going on with these quotes lately? I've had the same trouble.