Page 1 of 2
What's the performance diff between 'Grenade' and 'Bullet'?
Posted: Wed Jul 25, 2012 7:36 pm
by TheJamsh
Simply put, am I going to notice a performance difference changing bullet to grenade classes?
What's the extra overhead required to calculate the gravity influence on the ordnance? Is it going to be a huge performance impact?
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Wed Jul 25, 2012 7:55 pm
by MrTwosheds
Changing ordnance from bullet to grenade and having it perform like a bullet would create a weapon with a huge range, this would radically alter the "balance" of the weapon, eg destroy your enemy safely from 600 meters away behind your own defences by raining sp stabs on their base. There would be very little they could do to stop it.
Other than that I don't think there is much of a performance issue, unless you have done something inefficient to the effects.
Need to make sure you don't put any effects that emit ever increasing numbers of sprites, like the old plasma stream used to.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 3:01 am
by S.cavA.rmyG.en
would depend on the weapon.
for max ordence at once bullets are better.
for more control over ordence use grenade.
I am sure it takes more to calculate the gravity influence on the ordnance [found out testing my thunder storm 1000+ordence] the bullets would run 2 as fast but don't arc so to keep the effect I droped the number of ordence and use grenades.
if your planning on changing the stock weapons a littel it should be fine if your making some new render happy monster all I can say is test the hell out of it and good luck.

Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 7:58 am
by TheJamsh
MrTwosheds wrote:Changing ordnance from bullet to grenade and having it perform like a bullet would create a weapon with a huge range, this would radically alter the "balance" of the weapon, eg destroy your enemy safely from 600 meters away behind your own defences by raining sp stabs on their base. There would be very little they could do to stop it.
Other than that I don't think there is much of a performance issue, unless you have done something inefficient to the effects.
Need to make sure you don't put any effects that emit ever increasing numbers of sprites, like the old plasma stream used to.
The range isn't the issue, I'm using it on (strangely enough) the scion plasmas weapon to give it a slightly arcing effect like a flamethrower. The only issue I can see here, is that that thing generates ordnance every 0.02 seconds, which all individually have a lifespan of 0.8 seconds, so that's 40 grenade ordnances' spewing out of one unit when it uses this weapon.
(Also, I do use Grenade physics on the SP-Stab and AT-Stab, they have the same range as before, grenades respect the lifeTime flag too

)
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 1:53 pm
by MrTwosheds
Plasma would tend to go up because it is a very hot gas.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 2:19 pm
by Nielk1
Plasma isn't a gas at all...
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 4:00 pm
by Ded10c
Nielk1 wrote:Plasma isn't a gas at all...
That. Methinks twosheds needs to research states of matter
Plasma is comparable to gas, yes, but you can have plasma at subzero temperatures. In short, the defining factor is that it is ionised.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 4:44 pm
by Red Spot
In physics and chemistry, plasma is a state of matter similar to gas in which a certain portion of the particles are ionized.
Lots ... and lots of people refer to it as ionized gas, saves a few words ..

Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 8:10 pm
by Ded10c
When saving a few words makes you entirely wrong, it's not worth doing.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 9:49 pm
by MrTwosheds
I didn't really want to start a physics discussion. Does anyone know wether a plasma, the hot kind, would go up, down or in a straight line, in an atmosphere or vacuum? Seems to me its just fine how it was anyway.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 10:40 pm
by Red Devil
*checks plasma stream*
goes straight out and dissipates

Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 10:48 pm
by Ded10c
Plasma that is hotter than the atmosphere, like in any other state of matter, will convect upwards. Convection won't occur in a vacuum.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 10:54 pm
by Red Devil
so, if you shot some on Mercury or Venus, it might convect down. hmmm, planet-specific weapons...
maybe Mercurial Plasma Grenade?
Venusian Droopy Plasma Stream?
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 10:57 pm
by Ded10c
Density comes into play as well, of course.
Re: What's the performance diff between 'Grenade' and 'Bulle
Posted: Thu Jul 26, 2012 11:29 pm
by jaydenbz2
Is it even possible to make the plasma goes upwards?