Cap engineStep at a maximum frame count to prevent runaway loops