Hello to all who are reading this. I made a smoke screen ability, but when the ability is used it causes major frame rate drops, like down to single digits. The way the ability is made is it spawns a unit similar to the Overseers spawn changeling and the unit spawned is just a model of fog which has more models of fog attached to it to make it thicker, i really have no idea how to fix the problem so any advice would be appreciated.
Also make sure you're not spawning hundreds of models, such as once every tick of a Persistent effect. Unlike the above this can actually be fixed easily.
I am pretty sure its only spawning once, like i said its based off the Overseer ability spawn changeling, but i have attached 15 models to it, now that i look at it its probably that i just went overkill on the attachments i will try and lower them and see what happens.
Ok i changed it and it helped a bit but not as well as i was hoping its still droping some frames when the ability is used.
Hello to all who are reading this. I made a smoke screen ability, but when the ability is used it causes major frame rate drops, like down to single digits. The way the ability is made is it spawns a unit similar to the Overseers spawn changeling and the unit spawned is just a model of fog which has more models of fog attached to it to make it thicker, i really have no idea how to fix the problem so any advice would be appreciated.
It feels like particles are badly optimized in this engine, use smaller smoke models if you made them big, or just use less smoke models.
Also make sure you're not spawning hundreds of models, such as once every tick of a Persistent effect. Unlike the above this can actually be fixed easily.
I am pretty sure its only spawning once, like i said its based off the Overseer ability spawn changeling, but i have attached 15 models to it, now that i look at it its probably that i just went overkill on the attachments i will try and lower them and see what happens.
Ok i changed it and it helped a bit but not as well as i was hoping its still droping some frames when the ability is used.