From dc6e16d1485a14631ea06fcced763f14add9a8d0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 7 Aug 2017 13:18:33 -0700 Subject: ray: more fragments for better thread utilization For now, a simple cpu multiplier of 64 is used. fb_fragment_t needs a tiling fragment divider added... --- src/modules/ray/ray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c index b80f384..89d114c 100644 --- a/src/modules/ray/ray.c +++ b/src/modules/ray/ray.c @@ -119,8 +119,8 @@ static float r; static void ray_prepare_frame(void *context, unsigned n_cpus, fb_fragment_t *fragment, rototiller_frame_t *res_frame) { /* TODO experiment with tiled fragments vs. rows */ - res_frame->n_fragments = n_cpus; - fb_fragment_divide(fragment, n_cpus, res_frame->fragments); + res_frame->n_fragments = n_cpus * 64; + fb_fragment_divide(fragment, n_cpus * 64, res_frame->fragments); /* TODO: the camera doesn't need the width and height anymore, the fragment has the frame_width/frame_height */ camera.width = fragment->frame_width, -- cgit v1.2.3