Original Post
🔒 Locked
Multithreaded texture loading
Advertisement
Since OpenGL is single-threaded you''ll need to do your texture loading in 2 stages. Your main thread should be rendering as normal, while your secondary thread is loading the texture data into memory (but not making and calls to GL - only the main thread can do that). Once a texture has been loaded from disk you need to signal your main thread so that it can make the necessary calls to OpenGl to create the texture, set params, etc.
Iain Hutchison
Programmer, Silicon Dreams
The views expressed here are my own, not those of my employer.
Iain Hutchison
Programmer, Silicon Dreams
The views expressed here are my own, not those of my employer.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement