Just tested my game on PS4 and have some pretty massive spikes at least every other frame. PC and NX versions work smoothly. I disabled A* and the problem disappeared. I’m using version 4.0.11. I’ve tried different thread settings, including “None”, and the problem still persisted. Needed to make some modifications to a few scripts so I hope it’s something I can address without updating. Let me know if you have any ideas what might be causing this. Thanks!
Eric
Edit: Just want to add that the skipping happens even when nothing is actively using A*. Seems to be dependent on whether the A* singleton is enabled or not.
Isn’t that tool mostly a raw CPU profiler? I don’t think it will show things like relevant stacktraces in C# code? Is it not possible to attach the Unity profiler?
Also. You may want to upgrade to at least 4.2.4. There is this bit in the changelog that might be relevant.
Fixed a massive performance regression when using RVO together with IL2CPP and .net 4.6 due to changes in how the .net framework handles locking internally.
In the same version some other similar fixes for pathfinding and IL2CPP were also done.
I upgraded to 4.2.8 which definitely stopped the stuttering. Now to rewrite all my AI movement scripts I shouldn’t have modified A* in the first place, oh well, lesson learned.