SDL2, multithreading and loading screen |
Naith
|
No one's got any ideas / tips?
|
|||||||||||
|
reddog0000
|
As far as I know your right about screen access routines needing to be in the same thread.
Of course you could just code a test using two threads and see what happens ... woof |
|||||||||||
|
G-Shadow
|
Hi!
Why don't you add one intermediate "loading" state and switch to it from the menu to render progress before loader thread start. Then the loader thread will switch state to the "game" on loading success. It could update progress variable using some atomic functions. |
|||||||||||
|
Naith
|
I've solved it. Thanks for the answers.
|
|||||||||||
|