upload complete uniform buffer at once

this is the way of dx11. it would upload more per draw, but uses less calls.
will be faster if many uniforms are changed, but slower else
This commit is contained in:
degasus
2013-01-14 13:58:11 +01:00
parent b18c0a5d1b
commit c3aafc77b3
3 changed files with 27 additions and 5 deletions

View File

@ -208,6 +208,7 @@ void VertexManager::vFlush()
// set global constants
VertexShaderManager::SetConstants();
PixelShaderManager::SetConstants();
ProgramShaderCache::UploadConstants();
// setup the pointers
if (g_nativeVertexFmt)