Added a comment to note the reason for separating rendering from game loop