Optimized debug draw. Only draw visible part of grid.