Added an external fps meter, replaced loop with smoother one.