Topic: load textures in thread
I have implemented in my project a multi-thread assets load, meshes and animations load perfectly, but the textures are left blank, what should I change in my project or in the engine to avoid this problem?
You are not logged in. Please login or register.
I have implemented in my project a multi-thread assets load, meshes and animations load perfectly, but the textures are left blank, what should I change in my project or in the engine to avoid this problem?
OpenGL doesn't support threads by default, you can load images in threads, but you cannot send the data to OpenGL in threads.
Instead, you can load a bunch of images in threads in a temporary buffer or array, then go back to the main thread and send the data to OpenGL.
Thank you very much, I understand, the solution is simpler than I thought. I'll just have to check the code.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.