Improved performance of the dust effect.

Also fixed a regression caused by the recent changes to the effects
manager.