render: Move non-batching flushes to different place. This lets us batch up a few commands that are all related to the same API call.