Skip to content

Commit

Permalink
adjust gc parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcl committed Aug 29, 2024
1 parent b11acad commit 3043f1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Main/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let isMacos = Api.``process``.platform = Base.Darwin
let isWin = Api.``process``.platform = Base.Win32


//mainProcess.app.commandLine.appendSwitch("js-flags", "--expose-gc --trace-gc --trace-gc-ignore-scavenger --enable-logging --max-old-space-size=3500 --min-semi-space-size=64")
mainProcess.app.commandLine.appendSwitch("js-flags", "--expose-gc --trace-gc --trace-gc-ignore-scavenger --enable-logging --max-old-space-size=3600 --min-semi-space-size=64")


mainProcess.app.name <- "Issie"
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/UI/ModelHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Constants =
FontWeight = 500 // weight of text on waveforms
}
let maxWarnSimulationSize = 100000
let maxSimulationSize = 10000000
let maxSimulationSize = 4000000
let minScrollingWindow = 200
let wsButtonHeight = 30
let wsButtonWidth = 120
Expand Down
4 changes: 3 additions & 1 deletion src/Renderer/UI/UIPopups.fs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,9 @@ let dialogWaveSimConfigPopup (dispatch: Msg -> unit) (model:Model) =
["fontweight"], not <| inBounds 100 900 c.FontWeight, $"Font weight must be between 100 and 900"
[], warnSizeLarge c, $"Warning: very large simulation lengths and big designs result in high memory use and low performance. \
Simulation data memory use for the current design is estimated as\n: \
{arraySizeMessage c}, in addition up to 5GB will be required for heap and code."
{arraySizeMessage c}, in addition up to 5GB will be required for heap and code. \
Windows systems using more than 6GB simulation array memory are likely to crash. This limit does not \
depend on PC physical memory."
]
|> List.filter (fun (_, isError, _) -> isError)
|> List.map (fun (key, _, message) -> key, message)
Expand Down

0 comments on commit 3043f1d

Please sign in to comment.