Fix FPS tracking through environment variable (and make if a bit more lightweight...