Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduces memory allocations on render path/hot path #66

Open
tippesi opened this issue Oct 4, 2024 · 1 comment
Open

Reduces memory allocations on render path/hot path #66

tippesi opened this issue Oct 4, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tippesi
Copy link
Owner

tippesi commented Oct 4, 2024

There are quite a number of unnecessary memory allocation on hot paths that could be moved on the stack.
This really hurts in multi-threading cases when other threads allocate a lot of memory.

Ideas for improvements:

  • Pipeline barriers should not use std::vector
  • Blur filter weights can be calculated in constructors
  • Basically all usages of std::vector where we resize on a regular basis or even worse use .push_back without a proper .reserve
@tippesi tippesi added the enhancement New feature or request label Oct 4, 2024
@tippesi tippesi self-assigned this Oct 4, 2024
@YanbingXu
Copy link

YanbingXu commented Oct 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants