Moved font loading external to Draw call. Should improve performance.

This commit is contained in:
2023-11-20 00:28:59 -05:00
parent a875a4ed57
commit efefb3614b
2 changed files with 11 additions and 3 deletions

View File

@@ -96,7 +96,6 @@ func BuildGrid(numRows int, numColumns int) {
//assign random colours to a subset of all squares
squaresToColour := min(numColumns, numRows)
usedPositions := make([]Pair, squaresToColour)
coloredSoFar := 0
for i := 0; i < squaresToColour; i++ {