- Home /
Non matching Profiler.EndSample
Hi,
I am unsure why but this error has appeared in the console window of my game: Non matching Profiler.EndSample (BeginSample and EndSample count must match)
if anyone knows how to fix this problem, it will be much appreciated for you to let me know
Many Thanks,
Tommy Eaves
Answer by tanoshimi · May 25, 2017 at 07:09 PM
The message sounds pretty explicit.... you need to make sure all your code profiling sections have balanced BeginSample and EndSample pairs.
I believe that it occasionally appears when the profiler is interrupted, because I had the same error as well and in my case I didn't use the profiling code at all. It was simply running, while I was busy in the Unity Scene View.
Your answer
Follow this Question
Related Questions
Deep profile generating error and not giving frame 1 0 Answers
profiler for android 1 Answer
Device.Present or GFX.WaitForPresent 1 Answer