remove dead code

This commit is contained in:
Kevin Trogant 2025-04-22 20:57:17 +02:00
parent ff0a13e761
commit b354091704
2 changed files with 3 additions and 10 deletions

View File

@ -14,9 +14,9 @@ test_finished :: proc(user_data: rawptr) {
main :: proc() {
init_scheduler(100, 1000)
add_worker({.General, .Streaming, .Physics, .Rendering})
//add_worker({.General, .Streaming, .Physics, .Rendering})
//add_worker({.General, .Streaming, .Physics, .Rendering})
//add_worker({.General, .Streaming, .Physics, .Rendering})
add_worker({.General, .Streaming, .Physics, .Rendering})
add_worker({.General, .Streaming, .Physics, .Rendering})
add_worker({.General, .Streaming, .Physics, .Rendering})
queue_task(test_task, test_finished, nil, 10)

View File

@ -236,13 +236,6 @@ queue_task :: proc(
} else {
subtask_timings[i].time = 0.0
}
/*
sync.lock(&_scheduler.schedule_mutex)
// Add to schedule. This is FIFO. We could be more clever (for example use shortest time to finish)
queue.push_back(&_scheduler.schedule, subtask_slot)
sync.unlock(&_scheduler.schedule_mutex)
*/
}
sync.unlock(&_scheduler.subtask_list_mutex)