Replace DirectXTex's BC7/BC6H encoders #55

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:05 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

DirectXTex's CPU encoders are slow (BC7 runs in quick mode for that reason). A faster encoder makes texture import practical at full quality.

Decided

  • Investigate first: a GPU compute encoder on ContentTools' Vulkan device, or a faster CPU library; decide with measured speed and quality (PSNR) on the same textures.

Read first

Steps

  • 1. Make a benchmark set and record DirectXTex's time and PSNR.
  • 2. Try the candidates; write down the numbers.
  • 3. Decide and implement; keep the benchmark.

Done when

  • The decision and numbers are in this issue; the new encoder passes the texture tests; 0 warnings; tidy 0.

Claude can help with

  • The benchmark harness and PSNR measurement.

Learn

  • How BC7 modes trade quality for encode time.
## Why DirectXTex's CPU encoders are slow (BC7 runs in quick mode for that reason). A faster encoder makes texture import practical at full quality. ## Decided - Investigate first: a GPU compute encoder on ContentTools' Vulkan device, or a faster CPU library; decide with measured speed and quality (PSNR) on the same textures. ## Read first - `UnflavoredMeson/Primal#81`; [ContentTools](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/ContentTools), section 2. ## Steps - [ ] 1. Make a benchmark set and record DirectXTex's time and PSNR. - [ ] 2. Try the candidates; write down the numbers. - [ ] 3. Decide and implement; keep the benchmark. ## Done when - [ ] The decision and numbers are in this issue; the new encoder passes the texture tests; 0 warnings; tidy 0. ## Claude can help with - The benchmark harness and PSNR measurement. ## Learn - How BC7 modes trade quality for encode time.
Sign in to join this conversation.
No assignees
No project
Depends on
#28 ContentTools on both OSes
UnflavoredMeson/Primal_Plus_Plus
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#55
No description provided.