From b8d9dd1af3c98ce239ceea9f382f1687665c281c Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 9 Apr 2022 22:51:18 +0300 Subject: [PATCH] Hopefully improved continuous rendering's framerate, to solve some ANRs --- core/src/com/unciv/ui/tilegroups/TileGroup.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/com/unciv/ui/tilegroups/TileGroup.kt b/core/src/com/unciv/ui/tilegroups/TileGroup.kt index a204abd400..73a0058887 100644 --- a/core/src/com/unciv/ui/tilegroups/TileGroup.kt +++ b/core/src/com/unciv/ui/tilegroups/TileGroup.kt @@ -111,6 +111,10 @@ open class TileGroup(var tileInfo: TileInfo, val tileSetStrings:TileSetStrings, class UnitLayerGroupClass:Group(){ override fun draw(batch: Batch?, parentAlpha: Float) = super.draw(batch, parentAlpha) + override fun act(delta: Float) { // No 'snapshotting' since we trust it wil remain the same + for (child in children) + child.act(delta) + } } class UnitImageLayerGroupClass:ActionlessGroup(){