mathstuf / abagames-gunroar

Modernization of gunroar (http://www.asahi-net.or.jp/~cs8k-cyu/windows/gr_e.html)
7 stars 0 forks source link

Remove `GL_DYNAMIC_DRAW` usage #9

Closed mathstuf closed 10 years ago

mathstuf commented 10 years ago

Basically this seems to really slow things down. The shaders should do the math that is done in these dynamic arrays and uniform variables used per-frame.

mathstuf commented 10 years ago

And all of them are replaced. The last one I thought wouldn't have been possible (the line between the ships in DOUBLE PLAY mode) was completed with a uniform matrix to manipulate a line segment. Performance is back to 60+ fps.