Skip to content

Commit 631cd01

Browse files
authored
Luamem and terrain brushes (#426)
* Increase luamem warning threshold when using BIGMEM build * Add some useful terrain brushes
1 parent 7c7f07c commit 631cd01

File tree

6 files changed

+5
-1
lines changed

6 files changed

+5
-1
lines changed

scen_edit/view/floating/status_window.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ function StatusWindow:_UpdateMemory()
9191
-- We're detecting extensive memory usage here and exiting the current state if critical.
9292
-- TODO: Act on it a bit better and automatically clear the undo-redo stack instead of prompting the user to do stuff.
9393
local color = SB.conf.STATUS_TEXT_OK_COLOR
94-
if memory > 500 then
94+
95+
-- If the BIGMEM BAR105 engine build is used, then we dont ever really need to warn the user.
96+
local memoryWarnLevel = 500
97+
if string.find(Engine.versionFull,"BIGMEM", nil, true) then memoryWarnLevel = 16000 end
98+
if memory > memoryWarnLevel then
9599
color = SB.conf.STATUS_TEXT_DANGER_COLOR
96100
if not self.warnedTime or os.clock() - self.warnedTime > 10 then
97101
self.warnedTime = os.clock()
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)