Real-image posters: scale and encode in the background

Done in Draw it took about 200 ms per new poster (BiLinear scale to the
box plus PNG encoding), so each step to another title stalled the UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 22:22:41 +02:00
co-authored by Claude Opus 5.5
parent f0bc284e82
commit 45e8daaa71
5 changed files with 108 additions and 10 deletions
+3
View File
@@ -447,6 +447,9 @@ func (c *coverView) drawGraphics(screen tcell.Screen, x, y, cols, rows int) bool
if err != nil {
return false
}
if id == 0 {
return true // being prepared: the place stays empty until it is ready
}
if c.gfx.debug != nil {
if drawn := [5]int{int(id), x, y, cols, rows}; drawn != c.lastDrawn {
c.lastDrawn = drawn