Animation scenes draw every part separately, costing hundreds of draw calls a frame

Aperta
#814 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@JamesVanBoxtel ci sta già lavorando.

Dal 14/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Client-side enhancement graphics

Animation scenes, such as stage backgrounds like Esme's Terrace (#812) and the title screen, draw each part from its own image, so LÖVE can't batch them into one draw call. Esme's Terrace makes 943 draw calls a frame from 98 images, and the title screen makes 55. Most parts never move, yet each one is still transformed, coloured and blended every frame. This costs the most on phones and tablets, and it grows with every part a scene adds.

Proposed fix, done when animation data loads:

  • Pack the loader's images onto shared texture atlas pages, so draws from different images batch together.
  • Bake each run of still parts into one image drawn in the run's place, so the draw order stays the same.

It touches AnimationLoader.lua and graphics_util.lua, which the #199 UI rework also changes, so the two need to land in a coordinated order.

Lingua principale
Lua
Stelle
30
Fork
20
Merge medio
3g 15h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di panel-attack/panel-game

Tutte le issue di panel-attack/panel-game

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.