equal
deleted
inserted
replaced
59 Float ao_distance, ao_angle; |
59 Float ao_distance, ao_angle; |
60 int num_threads; |
60 int num_threads; |
61 int max_depth; |
61 int max_depth; |
62 |
62 |
63 Vector3 SphereDistribute(int i, int n, Float extent, Vector3 &normal); |
63 Vector3 SphereDistribute(int i, int n, Float extent, Vector3 &normal); |
64 |
64 |
65 queue<Sample*> sample_queue; |
65 Sample **sample_queue; |
|
66 int sample_queue_max, sample_queue_pos, sample_queue_count; |
66 bool sample_queue_end; |
67 bool sample_queue_end; |
67 pthread_mutex_t sample_queue_mutex, sampler_mutex; |
68 pthread_mutex_t sample_queue_mutex, sampler_mutex; |
68 pthread_cond_t sample_queue_cond, worker_ready_cond; |
69 pthread_cond_t sample_queue_cond, worker_ready_cond; |
69 |
70 |
70 static void *raytrace_worker(void *d); |
71 static void *raytrace_worker(void *d); |