Run the tex-files with latex->dvips->ps2pdf. Then it is much faster
than the lualatex run. 

For the conversion into gif use tex2gif or
convert -delay 15 -density 100x100 -alpha remove \
  pst-sphericaltrochoid-doc-anim1.pdf -loop 0 pst-sphericaltrochoid-doc-anim1.gif
