Some changes in renderer, added FPS limit