optimizations

add some optimizations
add showing framerate and frame time