Renegade Projects Network Forums
SHP Railgun hack - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Modding (https://forums.renegadeprojects.com/forumdisplay.php?fid=3)
+--- Forum: Red Alert 2 & Yuri's Revenge Editing (https://forums.renegadeprojects.com/forumdisplay.php?fid=8)
+--- Thread: SHP Railgun hack (/showthread.php?tid=1242)



SHP Railgun hack - DCoder - 11.02.2009

Lift eyebrow I've never understood the idea behind Gamemate's shp particles. I know it has to do with specifying BehavesLike= twice on a particle, but there is no code to actually do anything magic in that case. Can someone elaborate on what exactly this hack achieves and why it's not doable normally?


RE: SHP Railgun hack - Renegade - 11.02.2009

Usually, the particles of a railgun are a generated field of dots. With the hack, the particles look like a specified SHP instead.

Why this reduces the lag I can't tell you, but if I had to guess, I'd assume it's because the normal particles are calculated at runtime, whereas the SHPs are basically just loaded. (Which would reduce the amount of CPU time per particle required.)

In addition, you of course have the benefit of customization - while normal particles are basically just colored dots, SHPs can look like anything.

I can confirm that the hack most definitely works, btw.

btw...you posted there as well.


RE: SHP Railgun hack - DCoder - 11.02.2009

I don't doubt that it does work, what I doubt is that double-stating BehavesLike has the effect attributed to it. Thanks for the links.


RE: SHP Railgun hack - Beowulf - 14.02.2009

It does. Seems they stack but I don't think it reduces lag in any way since it's still generating a particle effect regardless. I didn't notice any lag freedom. If anything, it seemed to be worse.


RE: SHP Railgun hack - Renegade - 14.02.2009

I had the exact opposite experience - it worked completely as advertised. Where, usually, a single railgun would produce a noticeable moment of slowness, with the hack, I could have several of them fire at the same time without any lag.


RE: SHP Railgun hack - Beowulf - 14.02.2009

Maybe I did it wrong. I followed exactly as Gamemate described and didn't notice a change. Maybe you had better hardware.


RE: SHP Railgun hack - Electro - 15.02.2009

If Ren had better hardware it'd be slower. :xD: YR is like that, everything's inversely proportional to everything. Tongue