   where do you get the performance from?
  Where do you get the performance from in opengl?  Really, this is amazingly puzzling me, i am making a simple game and it runs slower than doom3, where did carmack get all that processing power from in his doom engine? his engine can draw a bunch of poly intensive stuctures, cast stencil shadows on them, do all those neat lightning tricks, bump and specular maps and it still has enough power that it can draw a sophisticated particle engines and several text-intensive interactive panels where i can barely draw 122 quads and few lines of text!!  You guys here are the experts, tell me how much does texture sorting really help? are texture switches really that expensive? and are there any glInterleavedArrays / glDrawElements like commands that i can use while specifying multitexture coordinates as well?  I mean how do YOU squish everything you can out of opengl?   
  get a profiling tool.  It will tell you to the line number what the bottleneck of your engine is.  Typically it's algorithmic: data structures, spatial partitioning, how you calculate collisions, how your game objects are stored, how fragmented your memory is, how well your code is constructed to avoid cache misses, etc.-me   ;  profilings only gonna help if the cpu is a bottlecneckfor your screenshot. im not 100% sure with it being 2d what the best methods areA/ sort everything by material (a collection of textures/shader etc), loop through  each material + if an obj in the scene uses it set the material + draw ALL objects that use it.B/ for the solid stuff draw front to back, eg draw buildings before roadC/ use texture compression etcetc   ;  To use multitexture and vertex arrays, you need to call glClientActiveTextureARB :    glClientActiveTextureARB(GL_TEXTURE0_ARB);    glTexCoordPointer(2, GL_FLOAT, 0, tp0);    glEnableClientState(GL_TEXTURE_COORD_ARRAY);    glClientActiveTextureARB(GL_TEXTURE1_ARB);    glTexCoordPointer(2, GL_FLOAT, 0, tp1);    glEnableClientState(GL_TEXTURE_COORD_ARRAY);;  http://developer.nvidia.com/object/gpu_programming_guide.htmlThis is a guide written by nVidia, but should be applicable to most GPUs.;  also, check out the performance stuff in the Forum FAQ;  free profiler for win32[ Fixy fixy. --Sneftel ]   ;Quote:Original post by Anonymous Posteroops. mods/admin delete the previous pls.the tags are not   just use standard html.  i.e. &lt;a href="url"&gt;link text&lt;/a&gt;<br><br>-me<br><br>