Resample the particles using the cumsum weight. Not good.
Try another video. Some bugfix.
CPU controller. And some other lots modification.