using FPSAnimator fixes eating 100% cpu if gl canvas is not visible