Add some optimization tips

This commit is contained in:
Nite Luo 2013-11-13 10:26:26 -08:00
parent 37d3601fd0
commit 05bc444ccb
1 changed files with 2 additions and 0 deletions

View File

@ -178,6 +178,8 @@ void Renderer::render()
void Renderer::drawBatchedQuads()
{
//TODO we can improve the draw performance by inseart material switching command before hand.
int quadsToDraw = 0;
int startQuad = 0;