mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 06:18:42 +00:00
tweak debug info conversion balancing - we want to give a bit more to debuggees...
This commit is contained in:
@@ -728,7 +728,7 @@ di_async_tick(void)
|
|||||||
if(!og_is_rdi && rdi_is_stale && t->thread_count == 0)
|
if(!og_is_rdi && rdi_is_stale && t->thread_count == 0)
|
||||||
{
|
{
|
||||||
U64 thread_count = 1;
|
U64 thread_count = 1;
|
||||||
U64 max_thread_count = os_get_system_info()->logical_processor_count;
|
U64 max_thread_count = os_get_system_info()->logical_processor_count/2;
|
||||||
if(priority_idx > 0)
|
if(priority_idx > 0)
|
||||||
{
|
{
|
||||||
max_thread_count = Max(1, max_thread_count/2);
|
max_thread_count = Max(1, max_thread_count/2);
|
||||||
@@ -748,7 +748,7 @@ di_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;
|
U64 max_threads = os_get_system_info()->logical_processor_count/2;
|
||||||
U64 current_threads = di_shared->conversion_thread_count;
|
U64 current_threads = di_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);
|
||||||
|
|||||||
Reference in New Issue
Block a user