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

Transfer all Textures to GPU at Load #84

Closed
DavidMansolino opened this issue Dec 14, 2018 · 0 comments
Closed

Transfer all Textures to GPU at Load #84

DavidMansolino opened this issue Dec 14, 2018 · 0 comments
Assignees
Labels
bug Something isn't working enhancement Implementation of a minor feature
Milestone

Comments

@DavidMansolino
Copy link
Member

Describe the Bug
Currently all the wren textures are loaded, setup and bind when the world is loaded, but OpenGL actually transfer them to the GPU only the first time they are used. Which can cause slowdowns while the simulation is running (because of culling new objects/textures can enter the scene, see for example https://www.gamedev.net/forums/topic/370069-texture-prefetch-preloading-solved/).

Steps to Reproduce
This is easily visible in big worlds when the viewpoint far field is set to non-zero. Moving the viewpoint initially produces jaggy motions and we can see the GPU memory increasing while we move. Then, once we have 'viewed' all the objects, the motion becomes smooth and GPU memory becomes stable.

Expected behavior
Performing an initial rendering without culling will force the transfer of all the textures to the GPU: this is currently in test here: cb98047

@DavidMansolino DavidMansolino added bug Something isn't working enhancement Implementation of a minor feature labels Dec 14, 2018
@DavidMansolino DavidMansolino added this to the R2019b milestone Dec 14, 2018
@DavidMansolino DavidMansolino self-assigned this Dec 14, 2018
@DavidMansolino DavidMansolino modified the milestones: R2019b, R2019a.rev1 Dec 14, 2018
omichel added a commit that referenced this issue May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Implementation of a minor feature
Development

No branches or pull requests

1 participant