Skip to content

texture: avoid issuing many glTexSubImage2D calls#11216

Closed
gulafaran wants to merge 1 commit into
hyprwm:mainfrom
gulafaran:texture
Closed

texture: avoid issuing many glTexSubImage2D calls#11216
gulafaran wants to merge 1 commit into
hyprwm:mainfrom
gulafaran:texture

Conversation

@gulafaran
Copy link
Copy Markdown
Contributor

applications that use QtWidgets like dolphin adds each folder item or individual file to the damage region and gives us a lot of different regions.

issuing multiple glTexSubImage2D calls is slow but on the other hand smaller regions can still be faster by simply calling glTexSubImage2D on each of them.

the tradeoff is uploading the extent region a few pixels that perhaps wasnt damaged yet again. but should be fine doing so.

so if case the rects size and pack the buffer extents and upload it in one call, and if few rects do it as before.

applications that use QtWidgets like dolphin adds each folder item or
individual file to the damage region and gives us a lot of different
regions.

issuing multiple glTexSubImage2D calls is slow but on the other hand
smaller regions can still be faster by simply calling glTexSubImage2D on
each of them.

the tradeoff is uploading the extent region a few pixels that perhaps
wasnt damaged yet again. but should be fine doing so.

so if case the rects size and pack the buffer extents and upload it in
one call, and if few rects do it as before.
@gulafaran
Copy link
Copy Markdown
Contributor Author

breaks dbeaver, il close this for now until its actually profiled as a slow thing.

@gulafaran gulafaran closed this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant