mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 16:49:27 +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
|
@ -159,6 +159,9 @@ void VertexManager::AddVertices(int primitive, int numVertices)
|
|||
|
||||
void VertexManager::Flush()
|
||||
{
|
||||
if (LocalVBuffer == s_pCurBufferPointer) return;
|
||||
if (Flushed) return;
|
||||
Flushed = true;
|
||||
g_vertex_manager->vFlush();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue