public static void EnqueueBack(MyPrecalcJob job)
 {
     if (MyFakes.PRIORITIZE_PRECALC_JOBS)
     {
         ProfilerShort.Begin("SortedJobs.Add");
         m_addedJobs.Add(job);
         ProfilerShort.End();
         return;
     }
 }
 public static void EnqueueBack(MyPrecalcJob job, bool isHighPriority)
 {
     if (isHighPriority)
     {
         m_highPriorityJobs.EnqueueBack(job);
     }
     else
     {
         m_lowPriorityJobs.EnqueueBack(job);
     }
 }
示例#3
0
 public static void EnqueueBack(MyPrecalcJob job, bool isHighPriority)
 {
     if (MyFakes.PRIORITIZE_PRECALC_JOBS)
     {
         ProfilerShort.Begin("SortedJobs.Add");
         m_addedJobs.Add(job);
         ProfilerShort.End();
         return;
     }
     if (isHighPriority)
     {
         m_highPriorityJobs.EnqueueBack(job);
     }
     else
     {
         m_lowPriorityJobs.EnqueueBack(job);
     }
 }