mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
4.6.4-patch1
Dispose used objects immediately to avoid OutOfMemory
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user