You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2020. It is now read-only.
I started working on Paralelizing shadow map generation with joblib in my paralel branch. I added new parameter n_jobs and it works already. It is a little faster then with only one job.
Joblib is only needed if more than one job is requested.
Renders in 14 seconds with 4 jobs and 42 seconds with one on 4 core Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
The problem is that now height map is pickled for each job. Running time is strangely longer if I save height map myself and do mmap of height map for each job.
Another problem is background image. Previously it was opened once, now it is opened for each job, because It can't be pickled, I have to optimize it.
And parallel could use threads instead of multiprocessing if GIL isn't needed in C code. With no gil I don't know if this is possible here.