go-opengl-pixel/pixelgl
Seebs ce8687b80f Don't duplicate computations in gltriangles.go
The computation including a call to Stride() can't be optimized away
safely because the compiler can't tell that Stride() is effectively
constant, but we know it won't change so we can make a slice pointing
at that part of the array.

CPU time for updateData goes from 26.35% to 18.65% in my test case.
2017-06-09 10:37:47 -05:00
..
canvas.go Simplify Matrix math, use 6-value affine matrixes. 2017-06-09 10:37:43 -05:00
doc.go add pixelgl package doc 2017-04-21 17:00:18 +02:00
glframe.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
glpicture.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
gltriangles.go Don't duplicate computations in gltriangles.go 2017-06-09 10:37:47 -05:00
input.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
monitor.go stop using mainthread.CallVal 2017-02-24 15:45:32 +01:00
run.go fix two misspells 2017-03-16 00:45:04 +01:00
util.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
window.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00