When I look at the monitor in Visual Studio, I see the CPU usage spiking from 1%-7% constantly. So I think some of my code is bad or I'm not doing the timing correct. I followed this tutorial:
http://gafferongames.com/game-physics/fix-your-timestep/This is what it looks like:
https://gfycat.com/SoftLikableDairycowAs you can see, it seems like it is skipping some draw calls. I tried setting the FramerateLimit to 60, 120, and unlimited but get the same results. I tried turning on VSync but get worse performance.
My specs are: Windows 10 64-bit, nVidia 970, i7-4790k
You can download the visual studio project here (Run using x86):
https://www.dropbox.com/s/o9uqarh4q3p8uap/RPGWorld.zip?dl=0Or you can look at the code here:
https://gist.github.com/anonymous/2af3c35d568324fb0a6ce8039ef42a64 The relevant code is most likely in Game.cpp where I do the timing in the function update() and Player.cpp where I do the movement.
Another thing to note is that I let someone else try the project and it ran smoothly for them. He was using a Linux machine but same graphics card. Is it Windows related? Any help would be appreciated.