OverlapCircleAll is killing my framerate
This one function is killing my frame_rate, is there an alternative, or workaround to find objects near my objects?
Depending on how many you have, I guess you could keep a list of all objects and then compare distances to the object. I'm not sure if that is more effective.0
Ended up just calling tsPhysics2D.overlap once every 5 frames in a large radius and storing the results.
Then, I read from the results to find objects near my units at varying radius.
This solved the problem somewhat, but it's still gets pretty laggy once I create 50+ units0