diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2017-08-07 13:18:33 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2017-08-07 13:18:33 -0700 |
commit | dc6e16d1485a14631ea06fcced763f14add9a8d0 (patch) | |
tree | 8f193f31dfcb37f67bb19275d634385e2b42b16e /src/modules/ray/ray.c | |
parent | f0a961c5672aaee05112d54555aec6b9b68416dc (diff) |
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...
Diffstat (limited to 'src/modules/ray/ray.c')
-rw-r--r-- | src/modules/ray/ray.c | 4 |
1 files 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, |