GUI: optimize pattern view

don't render what isn't visible
from 3.5ms to 2ms in my phone

to-do: check for regressions...
This commit is contained in:
tildearrow 2025-02-22 19:57:53 -05:00
parent dd9983778b
commit f674a38d8e
2 changed files with 37 additions and 20 deletions

View file

@ -2545,7 +2545,7 @@ class FurnaceGUI {
ImVec2 patWindowPos, patWindowSize;
// pattern view specific
ImVec2 fourChars, threeChars, twoChars;
ImVec2 fourChars, threeChars, twoChars, oneChar;
ImVec2 noteCellSize, insCellSize, volCellSize, effectCellSize, effectValCellSize;
SelectionPoint sel1, sel2;
int dummyRows;