File tree Expand file tree Collapse file tree
src/engine/renderer-vulkan/Thread Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -515,8 +515,6 @@ void TaskList::AddTasksExt( std::initializer_list<TaskInitList> dependencies ) {
515515}
516516
517517Task* TaskList::FetchTask ( Thread* thread ) {
518- Log::DebugTag ( " Thread %u fetching" , thread->id );
519-
520518 ThreadQueue& threadQueue = threadQueues[TLM .id ];
521519 uint8 current = threadQueue.current ;
522520 uint16 id = threadQueue.tasks [current];
Original file line number Diff line number Diff line change @@ -101,16 +101,13 @@ void Thread::Run() {
101101 idle.Start ();
102102 std::this_thread::yield ();
103103 idle.Stop ();
104- Log::DebugTag ( " id: %u: yielding" , id );
105104
106105 exiting = taskList.ThreadFinished ( false );
107106 continue ;
108107 }
109108
110109 fetchIdleTimer.Stop ();
111110
112- Log::DebugTag ( " id: %u: executing" , id );
113-
114111 taskList.TaskStarted ();
115112
116113 Timer t;
@@ -143,7 +140,7 @@ void Thread::Run() {
143140
144141 dependencyTimer.Start ();
145142
146- if ( !task->threadMask || !UnSetBit ( task->threadMask , FindLSB ( task-> threadMask ) )
143+ if ( !task->threadMask || !UnSetBit ( task->threadMask , TLM . id )
147144 || task->threadCount .fetch_sub ( 1 , std::memory_order_relaxed ) == 1 ) {
148145 task->complete .Signal ();
149146 task->ExecuteDestructors ();
You can’t perform that action at this time.
0 commit comments