From 3332e361af63a684dfe3f71eb868d9e6c92eaa3f Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 14 Jun 2025 21:28:21 -0700 Subject: modules/plasma: only advance rr when ticks change This manifested as extremely fast plasma phase change when used as a checkers fill_module --- src/modules/plasma/plasma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/plasma/plasma.c b/src/modules/plasma/plasma.c index de14ed1..ddd58d8 100644 --- a/src/modules/plasma/plasma.c +++ b/src/modules/plasma/plasma.c @@ -80,7 +80,10 @@ static void plasma_prepare_frame(til_module_context_t *context, til_stream_t *st plasma_context_t *ctxt = (plasma_context_t *)context; *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; - ctxt->rr += 3; + + /* FIXME: see comment in julia.c about this recurring kludge */ + if (ticks != context->last_ticks) + ctxt->rr += 3; } -- cgit v1.2.3