diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-05-22 11:38:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-05-22 11:48:46 +0000 |
| commit | 708ca3d650dc16372eeed5f1c6bed62d01c5c408 (patch) | |
| tree | 06bceaa9f932411aa44ddb462ef3702fc5be8ab7 /scripts | |
| parent | render: use single-pixel buffers for overlays, when possible (diff) | |
render: single-pixel: minor optimization
Don't re-create the single-pixel buffer, unless necessary.
The buffer itself doesn't have a size. That means we can re-use the
buffer if the last frame's overlay style matches the current frame's
style.
What we *do not* know is whether the current frame's size is the same
as the last frame's.
This means we still have to set the viewport destination, and commit
the surface.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
