mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112506 from RandomShaper/less_locky_cmd_queue
CommandQueueMT: Reduce contention + Fix race conditions
This commit is contained in:
commit
0e182ee83d
3 changed files with 34 additions and 10 deletions
|
|
@ -103,7 +103,7 @@ Error _betsy_compress_s3tc(Image *r_img, Image::UsedChannels p_channels);
|
|||
class BetsyCompressor : public Object {
|
||||
GDSOFTCLASS(BetsyCompressor, Object);
|
||||
|
||||
mutable CommandQueueMT command_queue;
|
||||
mutable CommandQueueMT command_queue = CommandQueueMT(true);
|
||||
bool exit = false;
|
||||
WorkerThreadPool::TaskID task_id = WorkerThreadPool::INVALID_TASK_ID;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue