I’m developing a 32-bit OpenGL based game and testing on Windows 8.1 with a GeForce GT 640M (with latest driver). Once in every 3-4 launches of the game, the fps is quite low (and cpu quite high) and never improves. The rest of the time, the game runs fine at 60fps and reasonable cpu usage.
I’m using GLFW as the OpenGL window manager and I’ve tried changing swapInterval, calling glflush, glfinish, and pretty much everything suggested online. Nothing helps.
After profiling the game while it was running sluggishly I noticed that nvoglv32.dll is consuming a ton of cpu. When the game is running smoothly nvoglv32.dll consumes much less cpu.
Is this a known driver bug? Is there something that I might be doing wrong? Here’s the relevant part of the source code: https://github.com/Sheado/cocos2d-x/blob/v3-sheado/cocos/platform/desktop/CCGLViewImpl-desktop.cpp
Any suggestions greatly appreciated!