diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-10-30 11:38:00 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-10-30 13:03:25 (GMT) |
commit | 90567274b900b22ab6b1c016ee66b7915aa994c8 (patch) | |
tree | 1c8df6469520c99f054e4b6b2c8ec4e1fea847d4 /mkspecs | |
parent | a8d1c0a7137b2d1f7ca74a24321cea41428ce0bd (diff) | |
download | Qt-90567274b900b22ab6b1c016ee66b7915aa994c8.zip Qt-90567274b900b22ab6b1c016ee66b7915aa994c8.tar.gz Qt-90567274b900b22ab6b1c016ee66b7915aa994c8.tar.bz2 |
Implement a simple caching algorithm for shader programs.
When the number of programs held in the cache exceeds a threshold, the
least frequantly used programs get deleted. This also covers programs
with custom snippets of code. As a conequence, when a
QGLCustomShaderStage gets deleted, any programs using that code will
(eventually) be freed.
Reviewed-By: Samuel Rødal
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions