mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-27 08:12:18 -08:00
windows: clear unneeded working set pages shortly after startup/initialization
This commit is contained in:
1 parent
edafc4d5c2
commit
ad8ae313f4
1 file changed
+10
@@ -16057,6 +16057,16 @@ 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
|
||||||
|
|
||||||
scratch_end(scratch);
|
scratch_end(scratch);
|
||||||
ProfEnd();
|
ProfEnd();
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user