Merge pull request #112506 from RandomShaper/less_locky_cmd_queue

CommandQueueMT: Reduce contention + Fix race conditions
This commit is contained in:
Thaddeus Crews 2025-11-21 14:46:52 -06:00
commit 0e182ee83d
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
3 changed files with 34 additions and 10 deletions

View file

@ -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;