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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user