many graphics performance tweaks

* use hardware vertex buffers (video memory)
* cache text drawing with vertex buffers instead of framebuffers
* avoid recalculating texture transformation matrix
This commit is contained in:
Eduardo Bart
2012-03-20 16:10:04 -03:00
parent b4261a8c7b
commit 5c35938a92
20 changed files with 180 additions and 155 deletions

View File

@@ -55,7 +55,6 @@ void Painter::terminate()
void Painter::drawProgram(const PainterShaderProgramPtr& program, CoordsBuffer& coordsBuffer, PainterShaderProgram::DrawMode drawMode)
{
coordsBuffer.cacheVertexArrays();
if(coordsBuffer.getVertexCount() == 0)
return;