Print current fps on log

Print current fps in every 3 seconds.
Fix to reset dirtyCnt after Flip()

It was flipped in max fps even though it didn't have to.