sph solver with performance consideration