shields and number of particles

shields and number of particles

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
raaar
Metal Factions Developer
Posts: 1095
Joined: 20 Feb 2010, 12:17

shields and number of particles

Post by raaar »

when i spawn shielded units, the number of particles increases significantly.

on an empty game, i spawned 10 shielded units, and it went from the base 300-400 particles to about "300 (1200)" (attached screenshot).

for every 10 shielded units i spawn after that, the number of particles outside the "( )" also increases by about 300.

btw, the default limit of simultaneous particles seems too low.
(when max number of simultaneous particles is reached, ceg aren't displayed anymore)

put it on http://springrts.com/mantis/view.php?id=3901

EDIT : the problem persists even if the units are spawned for an enemy team far away in the map, or if the shield is set to invisible (VisibleShield=0;).
Attachments
shield_particles_bug.jpg
example with 10 shielded units in an empty test game
(1.24 MiB) Not downloaded yet
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: shields and number of particles

Post by Beherith »

Have you tried turning it off and on again?
raaar
Metal Factions Developer
Posts: 1095
Joined: 20 Feb 2010, 12:17

Re: shields and number of particles

Post by raaar »

not sure what you meant.

I tried to put the unit onoffable=1 and tested spawning a bunch and toggling on/off. It doesn't do anything.
raaar
Metal Factions Developer
Posts: 1095
Joined: 20 Feb 2010, 12:17

Re: shields and number of particles

Post by raaar »

Kloot @ mantis :
If you really want "particle-free" shields you must set VisibleShield=0 AND visibleShieldHitFrames=0.
I forgot the visibleShieldHitFrames. It's "particle-free" now. Thanks.
Post Reply

Return to “Engine”