added diagnostic tools such a frame time, total time, and framerate