OpenGL on Windows uses Tons of CPU when SwapBuffers is called on a RenderThread OpenGL on Windows uses Tons of CPU when SwapBuffers is called on a RenderThread multithreading multithreading

OpenGL on Windows uses Tons of CPU when SwapBuffers is called on a RenderThread


This issue is simply solved by doing:

glFlush();glFinish();

Before calling::

wglSwapBuffers(dc); // WindowsglxSwapBuffers(dc, handle); // LinuxcglFlushDrawable(ctx); // OS X

Although drivers make a big difference with OpenGL on Windows, and Windows still performs far better with Direct3D.