Why is my C# program faster in a profiler?
Luaan posted the solution in the comments above, it’s the system wide timer resolution. Default resolution is 15.6 ms, the profiler sets the resolution to 1ms. I had the exact same problem, very slow execution that would speed up when the profiler was opened. The problem went away on my PC but popped back up … Read more