Project X Forums



It is currently Tue May 14, 2024 9:30 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PxParticles update (not official)
PostPosted: Thu Dec 06, 2012 12:38 am 
Offline
User avatar

Joined: Sun Apr 08, 2012 1:09 pm
Posts: 425
Location: Ukraine, Kyiv
i found that particles when they`re done - getting state "dead" but still in list.
Then operator reads who`s dead from list (which can be HUGE) and unload them.
Why don`t we unload them as soon as they are "dead"?
I tryed that and got amazing results.
Those operator placed in M_FRAME type and could proceed 500-700 particles per 5-10 secs.
Without it game free`s thouthands of particle objects per second.

I think its great and we should update this awesome Library.


Attachments:
pxparticles.rar [1.73 KiB]
Downloaded 468 times

_________________
Things to impress.
Top
 Profile  
Reply with quote  
 Post subject: Re: PxParticles update (not official)
PostPosted: Fri Dec 07, 2012 10:32 am 
Offline

Joined: Mon Jul 30, 2012 9:45 am
Posts: 194
This means existing weaps that make use of this lib can get performace boost aswell?
I wonder which ones that would be then... The Sentry Gun for example lags the game when there are placed a lot of them on the map.

_________________
http://twitch.tv/wormsdotam | http://worms.am/hl | http://worms.am/zombieshopper | http://worms.am/golf | http://worms.am/holywar


Top
 Profile  
Reply with quote  
 Post subject: Re: PxParticles update (not official)
PostPosted: Sat Dec 08, 2012 9:34 am 
Offline
User avatar

Joined: Sun Apr 08, 2012 1:09 pm
Posts: 425
Location: Ukraine, Kyiv
-raffie- wrote:
This means existing weaps that make use of this lib can get performace boost aswell?
I wonder which ones that would be then... The Sentry Gun for example lags the game when there are placed a lot of them on the map.


Yep you understood it right. Those weapons that makes lot of particles will work Much faster (if many particles around). For example bowlingball`s trail uses particles, laser, tazor, magnet, sentrygun.
Ofcourse they use just a touch of particles, but if some1 (like me :D) will use particles widely (like in portal gun) - this update will be very useful.
It unload particles extremely fast and synchronized (which is the most important).

But about sentry gun - it lags not becouse of particles. i`ve looked at its script, it uses particles to render Bullet`s shell ejection (sprite 115).
I think it lags coz each of placed sentrys reading everything around and checks if anyone is in radius of activity. And if radius active - running even more huge scripts :) game will become more laggy. But anyway those weap doesn`t made for placing hundreds of sentrys, i think :))

_________________
Things to impress.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane