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:
Robin Kertels
2022-11-16 14:39:29 +01:00
parent 8a1c28be63
commit f179fd9c33
4 changed files with 28 additions and 8 deletions

View File

@ -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)