mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
VideoCommon:VertexLoaderManager: Reduce CPConfig checks
A bit of a micro optimization: CheckCPConfiguration is called 350 times instead of 35k times.
This commit is contained in:
parent
8a1c28be63
commit
f179fd9c33
4 changed files with 28 additions and 8 deletions
|
@ -76,6 +76,7 @@ extern BitSet8 g_preprocess_vat_dirty;
|
|||
extern bool g_bases_dirty; // Main only
|
||||
extern std::array<VertexLoaderBase*, CP_NUM_VAT_REG> g_main_vertex_loaders;
|
||||
extern std::array<VertexLoaderBase*, CP_NUM_VAT_REG> g_preprocess_vertex_loaders;
|
||||
extern bool g_needs_cp_xf_consistency_check;
|
||||
|
||||
template <bool IsPreprocess = false>
|
||||
VertexLoaderBase* RefreshLoader(int vtx_attr_group)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue