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

Reduce texture sizes #39

Open
franciscoaguirre opened this issue Apr 1, 2023 · 0 comments
Open

Reduce texture sizes #39

franciscoaguirre opened this issue Apr 1, 2023 · 0 comments
Labels
performance Gotta go fast

Comments

@franciscoaguirre
Copy link
Owner

For saving memory.
Right now we are creating all textures with size max_node_pool_size, which is the size the node pool would have if it was dense.
It's not the worst thing if we just had one texture like that, but we have a bunch.

An idea to fix this is to create the node pool texture with this size, then create a new texture with the correct size (now that we know it) and copy the node pool over. We can then create all new textures with this size.

We'd need to be careful with dynamic objects if we do this. We could add a little buffer of extra space to handle them.

@franciscoaguirre franciscoaguirre added the performance Gotta go fast label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Gotta go fast
Projects
None yet
Development

No branches or pull requests

1 participant