In my level I have some colored polygons, which I want to draw in run-time rather than create textures offline.
The polygons is static and dont change during the level. My question is how I should draw these polygons to save performance.
- Create a rendertexture and render all the polygons on it in the beginning of the level.
- Create a VBO when the level loads and use it to draw the polygons.
- Just use ccDrawPolygon because it is already really fast.
- The best way I haven’t heard of yet….
I am using a lot of physics in the game, so CPU is limited.
Thanks for your answers.