Tweak particles demo to fix unresponsive script
Various optimizations