From 216f83db15a2c6f28794e4be25165f5ac55270ef Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 8 Sep 2024 16:37:16 +0000 Subject: render: increase queue sizes. --- render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render.c b/render.c index ad0f244..1a858e4 100644 --- a/render.c +++ b/render.c @@ -616,7 +616,7 @@ entityproc(void *arg) paramsout = emalloc(nproc*sizeof(*paramsout)); taskchans = emalloc(nproc*sizeof(*taskchans)); for(i = 0; i < nproc; i++){ - paramsout[i] = chancreate(sizeof(SUparams*), 8); + paramsout[i] = chancreate(sizeof(SUparams*), 256); tp = emalloc(sizeof *tp); tp->id = i; tp->paramsc = paramsout[i]; @@ -627,7 +627,7 @@ entityproc(void *arg) for(i = 0; i < nproc; i++){ rp = emalloc(sizeof *rp); rp->id = i; - rp->taskc = taskchans[i] = chancreate(sizeof(Rastertask*), 32); + rp->taskc = taskchans[i] = chancreate(sizeof(Rastertask*), 512); proccreate(rasterizer, rp, mainstacksize); } @@ -696,7 +696,7 @@ renderer(void *arg) ep = emalloc(sizeof *ep); ep->rctl = rctl; - ep->paramsc = chancreate(sizeof(SUparams*), 8); + ep->paramsc = chancreate(sizeof(SUparams*), 256); proccreate(entityproc, ep, mainstacksize); while((job = recvp(rctl->jobq)) != nil){ -- cgit v1.2.3