Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Add incremental GC setting from OWML (#181)
Browse files Browse the repository at this point in the history
If enabled, forces the game to use Unity's incremental garbage collector. Can reduce lag spikes in some situations.
  • Loading branch information
MegaPiggy committed Nov 19, 2022
2 parents 07d9fac + c99060b commit 585ff14
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/components/Settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ const settingsInputs: readonly SettingsInput[] = [
type: SettingType.Switch,
isOwmlSetting: true,
},
{
key: 'incrementalGC',
type: SettingType.Switch,
isOwmlSetting: true,
},
{
key: 'disableModWarnings',
type: SettingType.SwitchList,
Expand Down
1 change: 1 addition & 0 deletions app/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ type OwmlSettings = {
gamePath?: string;
debugMode?: boolean;
forceExe?: boolean;
incrementalGC?: boolean;
};
5 changes: 5 additions & 0 deletions app/helpers/static-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export const settingsText = {
tooltip:
'If enabled, launches game exe instead of launching via Steam / Epic. Needs to be disabled for DLC to work via the Epic store.',
},
incrementalGC: {
label: 'Use Incremental GC',
tooltip:
'If enabled, forces the game to use Unity\'s incremental garbage collector. Can reduce lag spikes in some situations.',
},
logLinesLimit: {
label: 'Log lines per page',
tooltip:
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ow-mod-manager",
"productName": "OuterWildsModManager",
"version": "1.16.2",
"version": "1.16.3",
"description": "Outer Wilds Mod Manager",
"main": "./main.prod.js",
"author": {
Expand Down

0 comments on commit 585ff14

Please sign in to comment.