diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-07-28 17:49:23 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-07-28 17:53:07 -0700 |
commit | 5ebea1031b1fe0a591c1f74ab63524d4afec6763 (patch) | |
tree | 72c8eacfe58232de2cbe0536984d41dcd8308343 | |
parent | 56dd0d460ec24bbc1b819b2dd4498abfb0850507 (diff) |
modules/*: use til_fragmenter_slice_per_cpu_x16() where applicable
Mechanical change switching til_fragmenter_slice_per_cpu() users
over to til_fragmenter_slice_per_cpu_x16(), except sparkler where
it's quite detrimental to performance.
-rw-r--r-- | src/modules/drizzle/drizzle.c | 2 | ||||
-rw-r--r-- | src/modules/julia/julia.c | 2 | ||||
-rw-r--r-- | src/modules/meta2d/meta2d.c | 2 | ||||
-rw-r--r-- | src/modules/mixer/mixer.c | 2 | ||||
-rw-r--r-- | src/modules/moire/moire.c | 2 | ||||
-rw-r--r-- | src/modules/plasma/plasma.c | 2 | ||||
-rw-r--r-- | src/modules/roto/roto.c | 2 | ||||
-rw-r--r-- | src/modules/shapes/shapes.c | 2 | ||||
-rw-r--r-- | src/modules/snow/snow.c | 2 | ||||
-rw-r--r-- | src/modules/strobe/strobe.c | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/drizzle/drizzle.c b/src/modules/drizzle/drizzle.c index 83ba334..d85d904 100644 --- a/src/modules/drizzle/drizzle.c +++ b/src/modules/drizzle/drizzle.c @@ -133,7 +133,7 @@ static void drizzle_prepare_frame(til_module_context_t *context, til_stream_t *s if (!til_stream_tap_context(stream, context, NULL, &ctxt->taps.rainfall)) *ctxt->rainfall = RAINFALL_CNT; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; for (unsigned i = 0; i < (unsigned)*ctxt->rainfall; i++) { int x = rand_r(&ctxt->til_module_context.seed) % (PUDDLE_SIZE - 1); diff --git a/src/modules/julia/julia.c b/src/modules/julia/julia.c index e5ce433..82c899f 100644 --- a/src/modules/julia/julia.c +++ b/src/modules/julia/julia.c @@ -110,7 +110,7 @@ static void julia_prepare_frame(til_module_context_t *context, til_stream_t *str { julia_context_t *ctxt = (julia_context_t *)context; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; ctxt->rr += .01; /* Rather than just sweeping creal,cimag from -2.0-+2.0, I try to keep things confined diff --git a/src/modules/meta2d/meta2d.c b/src/modules/meta2d/meta2d.c index 804e4fc..0cf7101 100644 --- a/src/modules/meta2d/meta2d.c +++ b/src/modules/meta2d/meta2d.c @@ -121,7 +121,7 @@ static void meta2d_prepare_frame(til_module_context_t *context, til_stream_t *st { meta2d_context_t *ctxt = (meta2d_context_t *)context; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; if (!til_stream_tap_context(stream, context, NULL, &ctxt->taps.min_t)) *ctxt->min_t = .7f; diff --git a/src/modules/mixer/mixer.c b/src/modules/mixer/mixer.c index 793df50..b9e4bfd 100644 --- a/src/modules/mixer/mixer.c +++ b/src/modules/mixer/mixer.c @@ -118,7 +118,7 @@ static void mixer_prepare_frame(til_module_context_t *context, til_stream_t *str til_fb_fragment_t *fragment = *fragment_ptr; size_t i = 0; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; mixer_update_taps(ctxt, stream, ticks); diff --git a/src/modules/moire/moire.c b/src/modules/moire/moire.c index a06549c..853b106 100644 --- a/src/modules/moire/moire.c +++ b/src/modules/moire/moire.c @@ -67,7 +67,7 @@ static void moire_prepare_frame(til_module_context_t *context, til_stream_t *str { moire_context_t *ctxt = (moire_context_t *)context; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; for (unsigned i = 0; i < ctxt->setup->n_centers; i++) { ctxt->centers[i].x = cosf(ctxt->centers[i].seed + (float)ticks * .001f * ctxt->centers[i].dir); diff --git a/src/modules/plasma/plasma.c b/src/modules/plasma/plasma.c index 473574a..de14ed1 100644 --- a/src/modules/plasma/plasma.c +++ b/src/modules/plasma/plasma.c @@ -79,7 +79,7 @@ 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 }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; ctxt->rr += 3; } diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c index ac6fa4f..8c9dd99 100644 --- a/src/modules/roto/roto.c +++ b/src/modules/roto/roto.c @@ -327,7 +327,7 @@ static void roto_prepare_frame(til_module_context_t *context, til_stream_t *stre { roto_context_t *ctxt = (roto_context_t *)context; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; // This governs the rotation and color cycle. if (ticks != context->last_ticks) { diff --git a/src/modules/shapes/shapes.c b/src/modules/shapes/shapes.c index b32d7ce..56ad35a 100644 --- a/src/modules/shapes/shapes.c +++ b/src/modules/shapes/shapes.c @@ -203,7 +203,7 @@ static void shapes_destroy_context(til_module_context_t *context) static void shapes_prepare_frame(til_module_context_t *context, til_stream_t *stream, unsigned ticks, til_fb_fragment_t **fragment_ptr, til_frame_plan_t *res_frame_plan) { - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; /* TODO: * I've implemented this ad-hoc here for shapes, but I think there's a case to be made that diff --git a/src/modules/snow/snow.c b/src/modules/snow/snow.c index 1640ff2..64a2d0d 100644 --- a/src/modules/snow/snow.c +++ b/src/modules/snow/snow.c @@ -39,7 +39,7 @@ static til_module_context_t * snow_create_context(const til_module_t *module, ti static void snow_prepare_frame(til_module_context_t *context, til_stream_t *stream, unsigned ticks, til_fb_fragment_t **fragment_ptr, til_frame_plan_t *res_frame_plan) { - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; } diff --git a/src/modules/strobe/strobe.c b/src/modules/strobe/strobe.c index a8d4237..1ed0b8b 100644 --- a/src/modules/strobe/strobe.c +++ b/src/modules/strobe/strobe.c @@ -54,7 +54,7 @@ static void strobe_prepare_frame(til_module_context_t *context, til_stream_t *st { strobe_context_t *ctxt = (strobe_context_t *)context; - *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu }; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu_x16 }; if (ctxt->flash_ready && (ticks - ctxt->ticks >= (unsigned)(ctxt->setup->period * 1000.f))){ ctxt->flash = 1; |