Switched to snprintf.
might have fixed some flickering.
fixed FPS display.
only display FPS if DEBUG is defined.