Skip to content

Commit

Permalink
Luamem and terrain brushes (#426)
Browse files Browse the repository at this point in the history
* Increase luamem warning threshold when using BIGMEM build

* Add some useful terrain brushes
  • Loading branch information
Beherith authored Aug 20, 2022
1 parent 7c7f07c commit 631cd01
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scen_edit/view/floating/status_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ function StatusWindow:_UpdateMemory()
-- We're detecting extensive memory usage here and exiting the current state if critical.
-- TODO: Act on it a bit better and automatically clear the undo-redo stack instead of prompting the user to do stuff.
local color = SB.conf.STATUS_TEXT_OK_COLOR
if memory > 500 then

-- If the BIGMEM BAR105 engine build is used, then we dont ever really need to warn the user.
local memoryWarnLevel = 500
if string.find(Engine.versionFull,"BIGMEM", nil, true) then memoryWarnLevel = 16000 end
if memory > memoryWarnLevel then
color = SB.conf.STATUS_TEXT_DANGER_COLOR
if not self.warnedTime or os.clock() - self.warnedTime > 10 then
self.warnedTime = os.clock()
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 631cd01

Please sign in to comment.