aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-05-22 11:38:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-05-22 11:48:46 +0000
commit708ca3d650dc16372eeed5f1c6bed62d01c5c408 (patch)
tree06bceaa9f932411aa44ddb462ef3702fc5be8ab7 /scripts
parentrender: 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