By making a simulation first so it can run as slowly as it needs to.
A different way to think of this is, consciousness is just a near real time video game with causal influence.