mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Refactor CommandQueueMT
* RingBuffer had no reason to be in this context * A single buffer is used that can grow as much as the game needs. This should make thread loading entirely reliable.
This commit is contained in:
parent
0818a466c0
commit
c66b2651a6
7 changed files with 39 additions and 211 deletions
|
@ -358,7 +358,7 @@ void RenderingServerDefault::_thread_loop() {
|
|||
draw_thread_up.set();
|
||||
while (!exit.is_set()) {
|
||||
// flush commands one by one, until exit is requested
|
||||
command_queue.wait_and_flush_one();
|
||||
command_queue.wait_and_flush();
|
||||
}
|
||||
|
||||
command_queue.flush_all(); // flush all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue