adding debug for determining batch flushes per frame