Skip to content

Commit 34b6b27

Browse files
committed
Hopefully decrease OOMs on crash screen
1 parent df2c1da commit 34b6b27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/com/unciv/ui/crashhandling/CrashScreen.kt

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class CrashScreen(val exception: Throwable) : BaseScreen() {
113113
}
114114

115115
init {
116+
System.gc() // If we previously died to an OOM error, this decreases the chances that the *crash screen* will OOM as well
116117
stage.addActor(makeLayoutTable())
117118
}
118119

0 commit comments

Comments
 (0)