nodes: optimize job infrastructure

Rework traversing so that jobs are only resolved when they are used. This should provide moderate optimize to the traversing process.
This commit is contained in:
itsmattkc
2022-05-03 11:19:21 -07:00
parent 5351e634b0
commit 028d2fd60c
31 changed files with 78 additions and 166 deletions
-12
View File
@@ -135,12 +135,8 @@ QByteArray NodeValue::ValueToBytes(NodeValue::Type type, const QVariant &value)
// These types have no persistent input
case kNone:
case kFootageJob:
case kTexture:
case kSamples:
case kShaderJob:
case kSampleJob:
case kGenerateJob:
case kDataTypeCount:
break;
}
@@ -354,10 +350,6 @@ QString NodeValue::GetPrettyDataTypeName(Type type)
case kAudioParams:
return QCoreApplication::translate("NodeValue", "Audio Parameters");
case kFootageJob:
case kShaderJob:
case kSampleJob:
case kGenerateJob:
case kDataTypeCount:
break;
}
@@ -406,10 +398,6 @@ QString NodeValue::GetDataTypeName(Type type)
return QStringLiteral("vparam");
case kAudioParams:
return QStringLiteral("aparam");
case kFootageJob:
case kShaderJob:
case kSampleJob:
case kGenerateJob:
case kDataTypeCount:
break;
}