From bfbe2af72df09c35c936241a5cdd76c3a63c3947 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 4 Nov 2019 18:19:28 -0500 Subject: add notes about gl frontend performance --- notes.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/notes.txt b/notes.txt index 213d3c3..1c51ce6 100644 --- a/notes.txt +++ b/notes.txt @@ -43,3 +43,15 @@ counter clockwise: - 2 -> 1, 3 - 3 -> 2, 5 - 0 -> 3, 7 + +gl optimization notes: +- store board pieces in an array of vaos +- make a structured clear even in the gameplay code + use this to update the vao array as well as animations +- stuctued lock event for animation in gl frontend +- store static skin elements in a seperate vao array + update on screen resize +- make ui element for the current piece which is copied + the board array on a lock event which leaves time to + edit the vertex buffer before copying it if it needs an + animation -- cgit v1.2.3-101-g0448