unity-movement-ai icon indicating copy to clipboard operation
unity-movement-ai copied to clipboard

debugDraw runs in builds

Open tonygiang opened this issue 3 years ago • 0 comments

While profiling a game using this library on a real device, I spotted this:

2020-10-09 09_56_10-

The debugDraw coroutine in MovementAIRigidbody will take up more time per frame during more crowded segments, sometimes consuming nearly 1ms per frame. This should not be happening. Ideally, this coroutine should only be run inside an #if UNITY_EDITOR block.

tonygiang avatar Oct 09 '20 03:10 tonygiang