Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _codeql_detected_source_root
2 changes: 1 addition & 1 deletion path-tracer-core/src/processors/master/master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ master::~master()
void master::run()
{
this->resolution =
math::uvec2((m_worker_info.max_x - m_worker_info.min_x), (m_worker_info.max_y - m_worker_info.min_y));
math::uvec2((m_worker_info.max_x - m_worker_info.min_x) + 1, (m_worker_info.max_y - m_worker_info.min_y) + 1);
this->sample_count = m_worker_info.samples;
this->m_should_terminate = false;
this->m_completed_rays = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ def get_split_scene(self) -> SplitScene:
if mesh.name not in work: work[mesh.name] = []
work[mesh.name].append(prim_id)
worker_info['total_size'] += prim_size
current_size += prim_size

if (self.memory_per_worker_GB is not None and (current_size + prim_size) >= self.memory_per_worker_GB) or \
if (self.memory_per_worker_GB is not None and current_size >= self.memory_per_worker_GB) or \
(self.num_workers is not None and (current_primitive >= total_primitives / self.num_workers) and
current_worker_id < self.num_workers):

Expand Down