mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Align SM GC time budget with manual GC time budget
6 milliseconds now used everywhere.
This commit is contained in:
parent
e3e542b1f9
commit
e930cf893e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue