mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Hopefully resolved ANRs from WorldScreen updates
This commit is contained in:
parent
95205893b7
commit
f3b4db9d64
@ -10,6 +10,7 @@ import com.badlogic.gdx.scenes.scene2d.actions.Actions
|
||||
import com.badlogic.gdx.scenes.scene2d.actions.RepeatAction
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Table
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.TextButton
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.TextField
|
||||
import com.badlogic.gdx.utils.Align
|
||||
import com.unciv.Constants
|
||||
import com.unciv.MainMenuScreen
|
||||
@ -75,7 +76,6 @@ import com.unciv.utils.concurrency.withGLContext
|
||||
import com.unciv.utils.debug
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.coroutineScope
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.TextField
|
||||
|
||||
/**
|
||||
* Do not create this screen without seriously thinking about the implications: this is the single most memory-intensive class in the application.
|
||||
@ -785,8 +785,11 @@ class WorldScreen(
|
||||
if (shouldUpdate) {
|
||||
shouldUpdate = false
|
||||
|
||||
// Since updating the worldscreen can take a long time, *especially* the first time, we disable input processing to avoid ANRs
|
||||
Gdx.input.inputProcessor = null
|
||||
update()
|
||||
showTutorialsOnNextTurn()
|
||||
Gdx.input.inputProcessor = stage
|
||||
}
|
||||
// topBar.selectedCivLabel.setText(Gdx.graphics.framesPerSecond) // for framerate testing
|
||||
|
||||
|
@ -1724,11 +1724,6 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<upon discovering [tech]>"
|
||||
Example: "<upon discovering [Agriculture]>"
|
||||
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<after adopting [policy]>"
|
||||
Example: "<after adopting [Oligarchy]>"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user