diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-03-13 18:19:19 +0100 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-03-20 09:43:04 +0100 |
| commit | 6c5b42b678b8e54cbb58f75d5d8abb50eff46dd9 (patch) | |
| tree | 34afb5831229d26bf9f5da1a8bcdf1b900fd08f9 /examples/opengl/doc/src | |
| parent | e7cff5bca7aefaea63e80598babf6bd7917aa1c3 (diff) | |
rhi: gl: Reduce state changes
...between setGraphicsPipeline() calls with different
QRhiGraphicsPipeline instances within the same pass.
Also adds similar logic for the GL_ARRAY_BUFFER (vertex buffers)
as that is a hotspot as well.
This is not intended to be a 100% avoiding any redundant call solution,
but rather to take care of the most common hotspots, so that bad OpenGL
implementations with a larger API call overhead will not cause us to
regress compared to the direct OpenGL rendering path in Quick and
Quick3D.
What we have here reduces the number of GL calls in the view3d example
by ~200 within one frame, which is a pretty good start.
Task-number: QTBUG-78603
Change-Id: I6aeab9c1c43b148ea6ef05d0284990a996c7ba28
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples/opengl/doc/src')
0 files changed, 0 insertions, 0 deletions
