diff --git a/cocos/2d/renderer/Renderer.cpp b/cocos/2d/renderer/Renderer.cpp index 2c471d8924..23d453ba99 100644 --- a/cocos/2d/renderer/Renderer.cpp +++ b/cocos/2d/renderer/Renderer.cpp @@ -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;