sure this is what I was using i had 2 of the same type of object to spawn different colors of this object i made it spawn these every time the player move for every 0.010 seconds to give it a retrowave mix with neon style when you move witch made it look like this i had a brightness at 150% glowhorizontal 100% glow vertical 100% and a tint and they were in a family effect
It is a cool effect indeed!
spawning 2 objects every 0.010 is very demanding I would say. It is almost similar to Every Tick. That's equal to 200 objects per second!!
If you want to use the same effect, you will have to reduce the number of objects by increasing the time. So instead of 0.01, try using 0.1 or more.
You can also use object pooling:
1- during game loading, generate 1000 objects.
2- when you need to run the effect, instead of "creating" objects, you can reuse the already created objects from step 1.
3- every 0.01 second, pick a random object from step 1, and place it behind the player and enable the effect.
4- when the effect is over, hide the objects (e.g. move them away to -1000,-1000 or something).
Notice that this solution creates objects only once (when loading), instead of every 0.01 second.
The reason why this is faster is because "Creating" an object is much more performance demanding than "Moving" and object. So moving 200 objects every 0.01 second is much faster than creating 200 objects every 0.01.