diff options
author | rodri <rgl@antares-labs.eu> | 2024-09-08 16:37:16 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-09-08 16:37:16 +0000 |
commit | 216f83db15a2c6f28794e4be25165f5ac55270ef (patch) | |
tree | cf63caea9842475cfd5c8e75a0fd175e15df3f6d | |
parent | ddbb6a2f4c9204b4539b7d43a0251d3f92538b10 (diff) | |
download | libgraphics-216f83db15a2c6f28794e4be25165f5ac55270ef.tar.gz libgraphics-216f83db15a2c6f28794e4be25165f5ac55270ef.tar.bz2 libgraphics-216f83db15a2c6f28794e4be25165f5ac55270ef.zip |
render: increase queue sizes.
-rw-r--r-- | render.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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){ |