I am using Vtune Threading mode to profile my project which running on windows 10. At Top-down view, I found 39.1% cpu time spend on spinning, callstack show in below picture.
But in Platform View, I find the spinning callstack only cost 40us per frame, in my project on frame cost about 7~14ms,
1.Whether I need to pay attention to the spin time of WaitForSingleObject, if i want to optimize running speed of my project
2.Why Top-down view show ApexScene::simulate spinning cost 39.1% Cup time ,but ApexScene::simulate callstack only cost 3%~6% cpu time each frame at Platform View
As far as I can see, WaitForSingleObject make thread enter kernel mode, which cost a large amount of cpu time, but thread will not spinning when there is not signal