convert less aggressively, fix incorrect di2 request batch clearing

This commit is contained in:
Ryan Fleury
2025-10-01 11:44:47 -07:00
parent 24406d1e4e
commit b92821b503
+2 -2
View File
@@ -517,11 +517,11 @@ di2_async_tick(void)
MemoryCopyStruct(&n_copy->v, &n->v); MemoryCopyStruct(&n_copy->v, &n->v);
SLLQueuePush(first_req, last_req, n_copy); SLLQueuePush(first_req, last_req, n_copy);
} }
}
arena_clear(b->arena); arena_clear(b->arena);
b->first = b->last = 0; b->first = b->last = 0;
b->count = 0; b->count = 0;
} }
}
//////////////////////////// ////////////////////////////
//- rjf: generate load tasks for all unique requests //- rjf: generate load tasks for all unique requests
@@ -673,7 +673,7 @@ di2_async_tick(void)
//- rjf: determine if there are threads available //- rjf: determine if there are threads available
B32 threads_available = 0; B32 threads_available = 0;
{ {
U64 max_threads = os_get_system_info()->logical_processor_count*8; U64 max_threads = os_get_system_info()->logical_processor_count*2;
U64 current_threads = di2_shared->conversion_thread_count; U64 current_threads = di2_shared->conversion_thread_count;
U64 needed_threads = (current_threads + t->thread_count); U64 needed_threads = (current_threads + t->thread_count);
threads_available = (max_threads >= needed_threads); threads_available = (max_threads >= needed_threads);