Made rendering and updates frame independent.