From ab153f2c4397b051e2baa740fad2945a36bd692e Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Tue, 24 Jun 2025 21:16:04 -0500 Subject: [PATCH] software_ta: separate framebuffer index from animation index --- example/software_ta.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/software_ta.cpp b/example/software_ta.cpp index b820ba1..4020bc9 100644 --- a/example/software_ta.cpp +++ b/example/software_ta.cpp @@ -181,6 +181,7 @@ void main() float theta = 0; uint32_t frame_ix = 0; + uint32_t anim_ix = 0; bool hardware_ta = false; @@ -195,7 +196,7 @@ void main() auto isp_tsp_parameters = &texture_memory32[texture_memory_alloc::isp_tsp_parameters.start / 4]; while (true) { - if ((frame_ix & 255) == 0) { + if ((anim_ix & 255) == 0) { holly.SOFTRESET = softreset::pipeline_soft_reset; holly.SOFTRESET = 0; hardware_ta = !hardware_ta; @@ -234,5 +235,6 @@ void main() frame_ix = (frame_ix + 1) & 1; theta += half_degree; + anim_ix += 1; } }