visible chunks have priority in ensure_chunks