only allowing the debug grid to be drawn once, to prevent really bad things in a loop