For some reason my application has gone suddenly from 50-60fps to 8fps and the CPU is running at over 90%.
Puzzled I tried commenting out any updtes or cpu intensive calls but no difference.
Looking at the profiler I see one consistent process running at over 80% total with a time of 90ms.
Does anyone know what this might indicate?
Gfx.WaitForPresent
After some googling discovered this is a common problem on Windows and has something to do with the way Direct X is implemented. Forcing OpenGL on windows causes the problem to go away but I also tried switching the order of the Graphics API for Windows setting in
Project Settings > Player > Other Settings
Making Direct3D11 first cuases the problem, while if I use Direct3D9 first, the problem also goes away. So the culprit seems to be Direct3D11, anyone know why?
After some googling discovered this is a common problem on Windows and has something to do with the way Direct X is implemented. Forcing OpenGL on windows causes the problem to go away but I also tried switching the order of the Graphics API for Windows setting in
Project Settings > Player > Other Settings
Making Direct3D11 first cuases the problem, while if I use Direct3D9 first, the problem also goes away.
So the culprit seems to be Direct3D11, anyone know why?