added -O2, now it's quite smooth on the pi :)