diff options
| author | 2019-11-04 18:19:28 -0500 | |
|---|---|---|
| committer | 2019-11-04 18:19:28 -0500 | |
| commit | bfbe2af72df09c35c936241a5cdd76c3a63c3947 (patch) | |
| tree | caac7229e5204a1e0bc6beca28fce82aa3b75a03 | |
| parent | 3a198c9b2aca247a3aa0a1bad0194733dbb93dd2 (diff) | |
| download | cetris-bfbe2af72df09c35c936241a5cdd76c3a63c3947.tar.gz cetris-bfbe2af72df09c35c936241a5cdd76c3a63c3947.tar.bz2 cetris-bfbe2af72df09c35c936241a5cdd76c3a63c3947.zip | |
add notes about gl frontend performance
| -rw-r--r-- | notes.txt | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |