CScatter playback performance slowdown

Playback/scrubbing is severely slowed down by scatter object even when not visible and nothing animated.

  1. create plane+ teapot and scrub timeline, playback / scrubing timeline is fast.
  2. create scene with 100k instanced teapots on a plane
  3. Set scatter’s diplaymode to ‘none’ and make sure nothing is animated
  4. observe how navigating the scene is very fast but.. is has very slow playback/scrubbing
  5. Set scatter’s enable to false and observe playback is fast again.

So look like CScatter is internally updating things on everyframe when it’s not required?

As a temp work around use this in pre/post render scripts:

pre-render:
for obj in objects where classof obj == Cscatter do obj.enable=true

post render:
for obj in objects where classof obj == Cscatter do obj.enable=false

mmm somehow the mxs enabling/disabling messes up the checkbox.. after a while it’s inverted so checking it disables it, uncheck make it work.. weird

(saving/reset/loading the scene fixes it again)

Note: switching random generator to congruent, or type to “in bounding box” seems to solve the issue.

This is fixed in daily builds - just checked. Everyone is welcome to test it though. :smiley:

nice! :smiley:

fixed