Optimizing and added FPS counter support.
Authored by: SumolX 2007-04-27
Parent: [r822]
Child: [r824]