mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
Align SM GC time budget with manual GC time budget
6 milliseconds now used everywhere.
This commit is contained in:
@@ -122,7 +122,7 @@ ScriptContext::ScriptContext(int contextSize, uint32_t heapGrowthBytesGCTrigger)
|
||||
|
||||
// Set a low time budget to avoid lag spikes, but allow any number of last ditch GCs
|
||||
// to avoid OOM errors.
|
||||
JS_SetGCParameter(m_cx, JSGC_SLICE_TIME_BUDGET_MS, 10);
|
||||
JS_SetGCParameter(m_cx, JSGC_SLICE_TIME_BUDGET_MS, 6);
|
||||
JS_SetGCParameter(m_cx, JSGC_MIN_LAST_DITCH_GC_PERIOD, 0);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user