move render-queue trimming