- Home /
 
               Question by 
               NarallandaKaratoga · Dec 10, 2019 at 06:28 AM · 
                threadsthreadingparallel  
              
 
              How to warm-up job threads
For performance reason, I'm calling external C functions in Jobs, using pointers, etc. Before a job thread can do anything it must be initialized. The initialization may run at least 2500+ms, so I cannot check and do the initialization when I needs job's result in one frame.
Recently I run 100000 jobs do the "check & initialize" things to make sure each threads are prepared. But it seem that it is not always successful. It seems that sometimes the max job thread is 8 but the actual initialized thread is 6.
Is there a built-in way to do this?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                