mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 05:48:40 +00:00
tweak process working set size placement
This commit is contained in:
@@ -586,7 +586,7 @@ ac_cancel_thread_entry_point(void *p)
|
|||||||
{
|
{
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
os_sleep_milliseconds(100);
|
os_sleep_milliseconds(500);
|
||||||
|
|
||||||
//- rjf: scan in-flight nodes for expiration
|
//- rjf: scan in-flight nodes for expiration
|
||||||
for EachIndex(cache_slot_idx, ac_shared->cache_slots_count)
|
for EachIndex(cache_slot_idx, ac_shared->cache_slots_count)
|
||||||
|
|||||||
+10
-10
@@ -10308,6 +10308,16 @@ rd_frame(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//////////////////////////////
|
||||||
|
//- rjf: [windows] clear pages from working set shortly after startup, many of which will not be needed
|
||||||
|
//
|
||||||
|
#if OS_WINDOWS
|
||||||
|
if(rd_state->frame_index == 1) ProfScope("SetProcessWorkingSetSize")
|
||||||
|
{
|
||||||
|
SetProcessWorkingSetSize(GetCurrentProcess(), max_U64, max_U64);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
//- rjf: do per-frame resets
|
//- rjf: do per-frame resets
|
||||||
//
|
//
|
||||||
@@ -16589,16 +16599,6 @@ rd_frame(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////
|
|
||||||
//- rjf: [windows] clear pages from working set shortly after startup, many of which will not be needed
|
|
||||||
//
|
|
||||||
#if OS_WINDOWS
|
|
||||||
if(rd_state->frame_index == 10)
|
|
||||||
{
|
|
||||||
SetProcessWorkingSetSize(GetCurrentProcess(), max_U64, max_U64);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
rd_state->frame_depth -= 1;
|
rd_state->frame_depth -= 1;
|
||||||
scratch_end(scratch);
|
scratch_end(scratch);
|
||||||
ProfEnd();
|
ProfEnd();
|
||||||
|
|||||||
Reference in New Issue
Block a user