OpenGL rendering very slow on ATI
-
Hi, I develop an graphic application, I use a opengl engine (modified for rendering on QOpenGLWidget).
The cursor is rendered in opengl via engine commands.
The problem is:
the cursor rendering is incredibly slow on ATI card (no problem on Nvidia card even older).Does QOpenglWidget need a specific parameter for ATI ?
-
Hi, I develop an graphic application, I use a opengl engine (modified for rendering on QOpenGLWidget).
The cursor is rendered in opengl via engine commands.
The problem is:
the cursor rendering is incredibly slow on ATI card (no problem on Nvidia card even older).Does QOpenglWidget need a specific parameter for ATI ?
@Roy44 said in OpenGL rendering very slow on ATI:
Does QOpenglWidget need a specific parameter for ATI ?
No OpenGL is a standardized interface to the graphics card.
Maybe a ATI graphics driver update remedies the issue already? -
@raven-worx said in OpenGL rendering very slow on ATI:
No OpenGL is a standardized interface to the graphics card.
Maybe a ATI graphics driver update remedies the issue already?The driver is up to date.
-
Hi,
In that case, you might want to try a downgrade. You might be hitting a bug with that version of the driver.
-
After some tests, I remark a big latency between le mouse movement and the rendering.
I did this test:
I use QOpenGLWidget.
I call paintGL in mousemoveevent function
I let the window cursor displayed and in paintGL function, I draw a circle (using only QPainter) centered on cursor position,
the cirle is late compared to window cursor.With an cursor drawn with opengl, the latency is bigger and huge with ATI card.
I think now my problem is my mouse event management:
Doing a render for each mouse move event seems to be the cause of my problem, but if I don't call paintGL in mousemoveEvent, the screen is not refreshed.Does exist a better way for refreshing screen on mouse event ?
thanks.(SORRY FOR MY HORRIBLE ENGLISH)
-
After some tests, I remark a big latency between le mouse movement and the rendering.
I did this test:
I use QOpenGLWidget.
I call paintGL in mousemoveevent function
I let the window cursor displayed and in paintGL function, I draw a circle (using only QPainter) centered on cursor position,
the cirle is late compared to window cursor.With an cursor drawn with opengl, the latency is bigger and huge with ATI card.
I think now my problem is my mouse event management:
Doing a render for each mouse move event seems to be the cause of my problem, but if I don't call paintGL in mousemoveEvent, the screen is not refreshed.Does exist a better way for refreshing screen on mouse event ?
thanks.(SORRY FOR MY HORRIBLE ENGLISH)
@Roy44 said in OpenGL rendering very slow on ATI:
Does exist a better way for refreshing screen on mouse event ?
normally this is done by reducing the paint calls and areas to a minimum.
Do you really repaint the whole screen?!