One approach is to only do the checking when in 'debug' mode, although Tony Hoare thought that switching off assertions in production was like going to sea without lifeboats.
Often in the game industry we go in the deep sea even without a ship :)