diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-30 21:15:14 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-02 13:14:27 +0200 |
commit | b1101fce301e83fe5dcac3c735959378789a8d16 (patch) | |
tree | f0e039b43e85010ed17b9ec713d5ea31acae422f /tests/auto/gui/rhi | |
parent | 387a61adfb2c4e0ea2fd1c17f00c783e4bb6d3a0 (diff) |
rhi: gl: Best uniform is no uniform
Artificial tests with tens of thousands of meshes drawn with
the same program (graphics pipeline) and almost the same
uniform values (the difference being in the normal and model
and view matrices) do benefit - strongly depending on the GL
implementation probably - from doing fewer glUniformNf[v] calls.
Building on the fact that uniform location values will typically
be an int value starting at 0 (not guaranteed of course, we just
skip the smartness in that case), we can dedicate a small 16K
block to keep track of float/vec3/vec3/vec4 values in the graphics
and compute pipeline objects.
Change-Id: I217c31ccdeb511b3e8b8286078d7fbde399c8e3b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi')
0 files changed, 0 insertions, 0 deletions