|
As my creature's code gets more complex, I start to occasionally skip turns. I tried to put in debug code to measure the time taken in various procedures so that I could optimize, unfortunately I can only get accuracy to the nearest 10 milliseconds. The message I get back from the engine is typically something like "took more than 1760 microseconds too many times". Consequently, I can't measure the time taken by any one thing until it is already about 6 times more than is allowed for the whole turn.
Does anyone know how many times you can go over the turn limit before skipping a turn, and what the formula is for calculating how many turns would be skipped?
On a similar note, at what point will a creature actually be destroyed for "thinking too long"... ie how many microseconds, or milliseconds? |