Applications that use QtWidgets can have a lot of rectangles in the damage region. For example, when you navigate between directories in Dolphin, each individual file or folder item will be added to the damage region rather than the container view where they are. On the other hand, issuing multiple glTexSubImage2D() function calls is not great because it means stalling the cpu until the texture upload completes. This change attempts to improve that by simplifying the input damage. If the input damage isn't complex, use it as is; otherwise use its bounding rect. The gains are not impressive. On my machine, I see fewer 5ms texture upload time spikes when navigating in Dolphin, now I can observe 4ms spikes instead. Still, I believe the change is reasonable enough.wilder/Plasma/6.2
parent
6b3f211ef7
commit
2cc3f9cdee
1 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue