Hello,
I'm actually trying to improve my game relating to memory usage and calculation.
In my game, objects are spawned, travel a distance and die.
The player should avoid some of them or grab others to make points.
I firstly started it by using rigid bodies and set velocity by object.
It was good, but I noticed some spikes on the profiler and distortion on VR.
So I decided to test another way, without physic, and instead an animated float for each object.
Seems to be worse than the first idea...
I toke a screenshot of the profiler,
each spike is the moment a new object is instantiated.
and during the time of the player loop(162ms), I noticed that the PlaymakerTriggerEnter is splitted in 2 parts of 78ms and 79ms.
So I'm wondering if there is a way to lower this and a better way to create the same effect.