17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-25 09:19:47 +01:00

perf(gpucull): keep the walks of the submodel trees of the instances from frame to frame and make them again only when the model changes (gfx.gpucull.walkcache)

This commit is contained in:
2026-10-24 01:01:43 +02:00
parent 794ac578de
commit 3e2d292709
10 changed files with 264 additions and 36 deletions

View File

@@ -658,6 +658,11 @@ void TAnimModel::on_season_update() {
void TAnimModel::RaPrepare()
{ // ustawia światła i animacje we wzorcu modelu przed renderowaniem egzemplarza
if ((pModel != nullptr) && ((iNumLights > 0) || (false == m_animlist.empty())))
{
// the lights and animations of this instance are set in the submodels the other instances share
pModel->state_changed();
}
if (Global.UpdateMaterials)
on_season_update();
for (int i = 0; i < iNumLights; ++i)