mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
implement some code to reduce the amounts of calls to setup vertex format, in d3d9 it gives no noticeable speedup, in opengl it still does not work right.
thanks to neobrain for the idea
This commit is contained in:
@ -52,6 +52,7 @@ public:
|
||||
private:
|
||||
void DrawVertexArray();
|
||||
void DrawVertexBufferObject();
|
||||
void DrawVertexBufferObjectBase(u32 stride);
|
||||
void vFlush();
|
||||
void PrepareDrawBuffers(u32 stride);
|
||||
u32 m_vertex_buffer_cursor;
|
||||
@ -63,6 +64,7 @@ private:
|
||||
u32 m_current_index_buffer;
|
||||
GLuint* m_vertex_buffers;
|
||||
GLuint* m_index_buffers;
|
||||
NativeVertexFormat *m_CurrentVertexFmt;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user