with sufficient threads, split baking threads into two groups: small # of threads to do expensive 'background' baking tasks, use the rest to do wide predictable baking stuff

This commit is contained in:
Ryan Fleury
2025-09-05 15:19:29 -07:00
parent f065ca33a2
commit 8fe4b3524f
6 changed files with 1191 additions and 1076 deletions
+1 -1
View File
@@ -1355,7 +1355,7 @@ internal Barrier
os_barrier_alloc(U64 count)
{
OS_W32_Entity *entity = os_w32_entity_alloc(OS_W32_EntityKind_Barrier);
InitializeSynchronizationBarrier(&entity->sb, count, -1);
BOOL init_good = InitializeSynchronizationBarrier(&entity->sb, count, -1);
Barrier result = {IntFromPtr(entity)};
return result;
}