﻿# Mitsuba particle tracing: split GPU work into sample passes rather than image tiles

Schedule Mitsuba ptracer work with its sample-pass mechanism, preserving film accumulation and distinguishing image resolution from the active GPU path workload.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-mitsuba-ptracer-sample-passes-image-tiles/
Language: en

## Follow where paths begin

A camera-originating path tracer starts with image locations, making image tiles a natural work partition. Particle tracing instead launches paths from emitters and attempts connections to the sensor. One emitted path is not owned by a predetermined camera tile. Reusing a scheduler's camera-tile assumptions can therefore change the computation or duplicate work even if the final output still has the expected resolution and channel count.

## Use the integrator's supported partition

The [Mitsuba integrator reference](https://mitsuba.readthedocs.io/en/latest/src/generated/plugins_integrators.html) states that `ptracer` cannot divide its workload into image-space tiles. It exposes `samples_per_pass` to split work into successive sample passes, particularly for wavefront execution. Use that mechanism when controlling active work inside a render. Do not infer that a film crop is an equivalent scheduling operation simply because both approaches appear to reduce an image-related dimension.

## Separate film storage from active paths

The [film reference](https://mitsuba.readthedocs.io/en/latest/src/generated/plugins_films.html) documents image resolution, crop and channel representation. Those choices affect stored image data, while pass size governs a different part of execution. A smaller pass can reduce the active path workload without eliminating scene geometry, acceleration structures or the full accumulation target. Measure the actual limiting allocation before concluding that a pass-size change will make a particular scene fit on a worker.

## Preserve accumulation and sampling semantics

A pass is part of an integral estimate, not automatically an independent finished image that can be added without weights. If an external scheduler combines separate render jobs, define normalization and sample accounting explicitly. The [sampler reference](https://mitsuba.readthedocs.io/en/latest/src/generated/plugins_samplers.html) explains how integrators consume generated samples. Preserve seed and workload information, and avoid treating repeated jobs with identical random streams as additional independent evidence about convergence.

## Compare a small unsplit result

On a manageable scene, compare the configured successive-pass render with a suitable reference under a statistical tolerance. Inspect overall brightness and spatial coverage, not only completion status. The guides to [GPU ray coherence](/journal/learn-ray-coherence-gpu-queues/) and [idle render capacity](/journal/render-farm-idle-gpus/) explain neighboring execution concerns. The acceptance question is whether the partition preserves the particle estimator and its accumulation while meeting the worker's memory budget; speed and memory savings require measurement.
