I set up a new thread by _beginthreadex method.
And when i using setText method in this thread, some unknown error happens.
So how can i use CEGUI in multi thread.
How to handle CEGUI in multi thread
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 9
- Joined: Sun Mar 11, 2012 18:14
Re: How to handle CEGUI in multi thread
You have to use some sort of a synchronisation scheme between threads as CEGUI isn't thread safe.
Most likely a queue that gets locked before each frame and all actions from it are performed in the CEGUI thread, then CEGUI gets rendered.
Google should get you plenty of material for this.
Most likely a queue that gets locked before each frame and all actions from it are performed in the CEGUI thread, then CEGUI gets rendered.
Google should get you plenty of material for this.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 3 guests