add advanced compilation setting, optimize by avoiding rand-int, set
to ~24fps
Merge pull request #1 from swannodette/master

optimization