Use GetMessage to wait for the next message and only render when needed.