mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00: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:
parent
eaa1ea71c1
commit
ee72852491
9 changed files with 305 additions and 110 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue