summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-11-04 18:19:28 -0500
committerAndrew Opalach <andrew@akon.city> 2019-11-04 18:19:28 -0500
commitbfbe2af72df09c35c936241a5cdd76c3a63c3947 (patch)
treecaac7229e5204a1e0bc6beca28fce82aa3b75a03
parent3a198c9b2aca247a3aa0a1bad0194733dbb93dd2 (diff)
downloadcetris-bfbe2af72df09c35c936241a5cdd76c3a63c3947.tar.gz
cetris-bfbe2af72df09c35c936241a5cdd76c3a63c3947.tar.bz2
cetris-bfbe2af72df09c35c936241a5cdd76c3a63c3947.zip
add notes about gl frontend performance
-rw-r--r--notes.txt12
1 files changed, 12 insertions, 0 deletions
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