diff options
| author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2026-07-09 08:09:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-09 08:09:24 -0400 |
| commit | a937b237de3651e79cdb517f14381a5bdd4c844b (patch) | |
| tree | 6ea93458c9a92b8660719b5346828583c7e7aefe /indra/llrender/llgl.cpp | |
| parent | 4452ec69732310c02ee20fb225806f489785789c (diff) | |
Geenz/texture loading speed (#5985)
* Add more controls for texture loading budgets. Should yield much faster loading within a given FPS target - should generally self regulate depending on your framerate.
* Harden texture pipeline against stalls and OOM. Generally makes texture loading faster, at the expense of some budgeting (which we weren't doing a great job at anyways).
Diffstat (limited to 'indra/llrender/llgl.cpp')
| -rw-r--r-- | indra/llrender/llgl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 4584ed1d86..0e59c449db 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -2370,6 +2370,12 @@ void clear_glerror() glGetError(); } +void drain_glerror() +{ + // bounded: a lost/reset context can return errors indefinitely + for (S32 i = 0; i < 16 && glGetError() != GL_NO_ERROR; ++i) {} +} + /////////////////////////////////////////////////////////////// // // LLGLState |
