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

Fix memory usage #68

Open
fenollp opened this issue Jul 9, 2017 · 0 comments
Open

Fix memory usage #68

fenollp opened this issue Jul 9, 2017 · 0 comments

Comments

@fenollp
Copy link
Collaborator

fenollp commented Jul 9, 2017

Right now a very static vertex buffer is allocated on host memory, this can probably be done directly on the GPU with geometry shaders (see layout). By default this buffer is full and of size 256 * 256 * 256 * 3 * 4, or about 200MB.

Also, it is of note that the colour buffer is mostly empty most of the time, while it is of the same size as the vertex buffer.
To fix this I am thinking of first processing the input file, turning it into a texture, then moving the sliding window on this texture.

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

No branches or pull requests

1 participant