I am rendering a mesh using OpenGl through Qt. (Qt 5.4).
On my OSX computer the rendering is relatively slow. When I rotate the mesh I can see that the rendering can't keep up with my mouse input.
On the same OSX computer when running a Windows 7 virtual machine and my application the rendering is silky smooth. It almost looks like the Mac version is rendering in software mode, instead of using acceleration.
I used glGetString to check the vender and renderer being used and this looks ok:
"NVIDIA Corporation"
"NVIDIA GeForce GT 650M OpenGL Engine"
Any ideas why the native OSX generated code would run so much slower.
BTW: I am rendering a mesh composed of about 150,000 vertices using a GL_ARRAY_BUFFER
.
I am quite new to OpenGL, any ideas?
QOpenGLWidget
. Try it withQGLWidget
first, if it's still slow there, then the problem has zero to do with Qt - aQGLWidget
is a very thin shim above the platform GL window. It won't slow you down. And really the only impact ofQOpenGLWidget
is indirect rendering - this matters not on PCs usually. – Kuba hasn't forgotten Monica Jun 24 '15 at 18:39