mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
sprite animator: calculate sprites once on start
This commit is contained in:
parent
2085878cf3
commit
49b5a22cb1
@ -35,6 +35,8 @@ class SpriteAnimator(val renderSystem: RenderSystem) {
|
||||
uniformBuffer = renderSystem.createIntUniformBuffer(IntArray(animations.size * INTS_PER_ANIMATED_TEXTURE))
|
||||
uniformBuffer.init()
|
||||
initialized = true
|
||||
recalculate()
|
||||
uniformBuffer.upload()
|
||||
}
|
||||
|
||||
private fun recalculate() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user