Method GetAutoIterationPerFrame
GetAutoIterationPerFrame(int)
Resolution-bucketed iterations-per-frame for split simulation nodes. Keeps each frame's GPU batch small enough to stay under the driver's TDR watchdog (a flat high count crashes the editor at 4K) while amortizing per-frame overhead so large bakes stay responsive without being needlessly slow. Values are hand-tuned for safety and responsiveness and kept conservative so multiple nodes can share them; the ranges also cover non-power-of-two resolutions. 4096 is the maximum officially supported output; above that this returns 1 for safety (callers overriding to higher resolutions should disable the auto behavior and accept the TDR risk).
public static int GetAutoIterationPerFrame(int resolution)
Parameters
resolutionintResolution of the stage being simulated, in pixels.
Returns
- int
The number of simulation iterations to run per frame yield at that resolution.