diff options
| author | Vito Caputo <vcaputo@pengaru.com> | 2025-06-14 21:28:21 -0700 | 
|---|---|---|
| committer | Vito Caputo <vcaputo@pengaru.com> | 2025-06-14 21:28:21 -0700 | 
| commit | 3332e361af63a684dfe3f71eb868d9e6c92eaa3f (patch) | |
| tree | d9b15775d973cca216d6e0c3ad395324b672bc60 /src | |
| parent | c061faad2270937ff3223c90e783e3f1dceff5d7 (diff) | |
modules/plasma: only advance rr when ticks change
This manifested as extremely fast plasma phase change when used as a checkers
fill_module
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/plasma/plasma.c | 5 | 
1 files changed, 4 insertions, 1 deletions
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;  }  | 
