osu-framework icon indicating copy to clipboard operation
osu-framework copied to clipboard

Buffered container currently reallocates its backing texture every time it's resized

Open peppy opened this issue 1 year ago • 0 comments

Noticed that in the blur transition to Player we have three textures which are constantly resizing. This is potentially causing a large amount of memory churn and potentially leading to performance issues for some users.

https://github.com/user-attachments/assets/727c1572-d38d-49ce-ba24-482fa27475b3

  • We likely want to never shrink a backing textures so once they reach their largest usage, there is no overhead.
  • We may want to also use power-of-two backing textures to reduce per-frame churn.

peppy avatar Oct 25 '24 10:10 peppy