fixed bugs in memory-limited rendering

This commit is contained in:
zueuk
2006-06-03 02:14:50 +00:00
parent a52cdba04a
commit 15a79586b8
2 changed files with 5 additions and 5 deletions

View File

@ -237,7 +237,7 @@ var
nsamples: Int64;
bc : integer;
begin
nsamples := Round(sample_density * bucketSize / (oversample * oversample));
nsamples := Round(sample_density * NrSlices * bucketSize / (oversample * oversample));
FNrBatches := Round(nsamples / (fcp.nbatches * SUB_BATCH_SIZE));
batchcounter := 0;
Randomize;