Goal
TextSourceOpts.textQuality is declared in the interface ("Oversample factor for the text canvas before upload. Default: 2") but is never used. High-density text at small font sizes becomes blurry.
Proposed change
Use textQuality in both createTextTextures and createTextTexturesGPU:
- Draw text onto a
width * textQuality × height * textQuality canvas.
- Downsample to
width × height before upload.
This anti-aliases the obstacle/coverage texture.
Acceptance criteria
Files likely touched: src/core/textures.ts
Goal
TextSourceOpts.textQualityis declared in the interface ("Oversample factor for the text canvas before upload. Default: 2") but is never used. High-density text at small font sizes becomes blurry.Proposed change
Use
textQualityin bothcreateTextTexturesandcreateTextTexturesGPU:width * textQuality × height * textQualitycanvas.width × heightbefore upload.This anti-aliases the obstacle/coverage texture.
Acceptance criteria
textQualityread increateTextTexturestextQualityread increateTextTexturesGPU2) produces no regression vs. current behaviourFiles likely touched:
src/core/textures.ts