I am making my 2D graphical engine for my game(S) for now using direct rendering with openGl. I want to optimize everything but I have a lot of questions.
-Using VBOs : I know it is a lot faster than direct rendering but I have also heard that this is not the case for moving objects. I can’t think of one thing that isn’t moving in a game aside from menus and UI. I have also seen people on this forum talking about shaders to “move” the textures, but isn’t it something that not every computer can handle?
-2D or 3D ? : I am not a fan of isometric 2D but I want to make a tiled map with multiple layers of “blocks”. Do you think creating all the tiles with the perspective effects(using at least 4 (actually 8 2*4 triangles)shapes, top front left and right side of the “cube”) depending on their location on the screen when the map scrolls would be a good idea or should I use some sort of 3D?
-What would be the best way to change the order of rendering of my sprites since it is 2D?
- Do you have any other optimization ideas? Everyone seems to always points towards VBOs when asked for optimization ideas. I am not in trouble in term of frame rate but better safe than sorry.
Thanks!