4.6.4-patch1

Dispose used objects immediately to avoid OutOfMemory
This commit is contained in:
Yair Morgenstern
2023-04-19 15:39:22 +03:00
parent 32191bd57d
commit a79fe06df3
3 changed files with 5 additions and 7 deletions

View File

@ -3,8 +3,8 @@ package com.unciv.build
object BuildConfig {
const val kotlinVersion = "1.8.0"
const val appName = "Unciv"
const val appCodeNumber = 852
const val appVersion = "4.6.4"
const val appCodeNumber = 853
const val appVersion = "4.6.4-patch1"
const val gdxVersion = "1.11.0"
const val roboVMVersion = "2.3.1"

View File

@ -531,7 +531,7 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci
companion object {
//region AUTOMATICALLY GENERATED VERSION DATA - DO NOT CHANGE THIS REGION, INCLUDING THIS COMMENT
val VERSION = Version("4.6.4", 852)
val VERSION = Version("4.6.4-patch1", 853)
//endregion
lateinit var Current: UncivGame

View File

@ -303,10 +303,8 @@ object Fonts {
frameBuffer.end()
// These need to be disposed so they don't clog up the RAM *but not right now*
Gdx.app.postRunnable {
spriteBatch.dispose()
frameBuffer.dispose()
}
spriteBatch.dispose()
frameBuffer.dispose()
// Pixmap is now *upside down* so we need to flip it around the y axis