开发者

QtOpenGL and MacOS X -- Software rendering?

开发者 https://www.devze.com 2023-01-16 22:56 出处:网络
I\'m deve开发者_Python百科loping a cross-platform application and am not very familiar with the Mac platform. I use Qt for the GUI. I use a QGLWidget to make sure the drawing (with QPainter) is done i

I'm deve开发者_Python百科loping a cross-platform application and am not very familiar with the Mac platform. I use Qt for the GUI. I use a QGLWidget to make sure the drawing (with QPainter) is done in OpenGL.

My project built fine in XCode and runs. However, drawing is slow as hell, in situations where on Windows and Linux machines speed is not an issue. The Macbook has an Nvidia GPU, whereas the Windows machine has only onboard intel graphics.

When I look at the binary, it seems that while linking to QtOpenGL lib, it does not explicitely link to the GL lib itself.

  • How can I test if hardware acceleration is working or software fallback rendering is doing the job?

  • Shouldn't my binary link to the GL lib, or is this hidden as being a recursive dependency?


The best way to see what OpenGL implementation is using is to print the value of glGetString(GL_VENDOR) and glGetString(GL_RENDERER), this should help pinpoint the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消