From 34b6b27958927481b5b913e14dc98417195461e0 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Mon, 17 Mar 2025 11:57:39 +0200 Subject: [PATCH] Hopefully decrease OOMs on crash screen --- core/src/com/unciv/ui/crashhandling/CrashScreen.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/ui/crashhandling/CrashScreen.kt b/core/src/com/unciv/ui/crashhandling/CrashScreen.kt index a85dad7986..9b00ae946c 100644 --- a/core/src/com/unciv/ui/crashhandling/CrashScreen.kt +++ b/core/src/com/unciv/ui/crashhandling/CrashScreen.kt @@ -113,6 +113,7 @@ class CrashScreen(val exception: Throwable) : BaseScreen() { } init { + System.gc() // If we previously died to an OOM error, this decreases the chances that the *crash screen* will OOM as well stage.addActor(makeLayoutTable()) }