[perf][LOW] Per-mip layout transitions issued one-at-a-time #70

Closed
opened 2026-06-16 16:51:35 +02:00 by jorijnvdgraaf · 0 comments

Subsystem: Image pipeline
Location: interfaces/Crafter.Graphics-ImageVulkan.cppm:130-162
Impact: Near-zero · Effort: Small · Not hot path (texture-upload time)

Problem

Per-mip layout transitions are issued one-at-a-time (N+1 barrier calls per mip-chain).

Proposed fix

Batch only the initial/final transitions.

Correctness caveat

The N-1 interleaved per-level barriers are correctness-mandated (each blit reads level i-1) and unbatchable. Only the initial/final transitions are batchable — near-zero ceiling. Down-ranked.

**Subsystem:** Image pipeline **Location:** `interfaces/Crafter.Graphics-ImageVulkan.cppm:130-162` **Impact:** Near-zero · **Effort:** Small · Not hot path (texture-upload time) ### Problem Per-mip layout transitions are issued one-at-a-time (N+1 barrier calls per mip-chain). ### Proposed fix Batch only the initial/final transitions. ### Correctness caveat The N-1 interleaved per-level barriers are **correctness-mandated** (each blit reads level i-1) and unbatchable. Only the initial/final transitions are batchable — near-zero ceiling. Down-ranked.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Catcrafts/Crafter.Graphics#70
No description provided.