dynamic particles: use event based waiting in favor of Sleep()
dynamic particles: some code cleanups