Added missing profiling tags and overrides

#rnx
#rb adrien.logut

[CL 30078848 by julien lheureux in ue5-main branch]
This commit is contained in:
julien lheureux
2023-12-04 08:53:11 -05:00
parent 5bf0ff8113
commit 3edaece80f
9 changed files with 13 additions and 5 deletions

View File

@@ -40,6 +40,8 @@ FPCGElementPtr UPCGCullPointsOutsideActorBoundsSettings::CreateElement() const
bool FPCGCullPointsOutsideActorBoundsElement::ExecuteInternal(FPCGContext* Context) const
{
TRACE_CPUPROFILER_EVENT_SCOPE(FPCGCullPointsOutsideActorBoundsElement::Execute);
if (!Context->SourceComponent.IsValid())
{
return true;

View File

@@ -45,6 +45,8 @@ FPCGElementPtr UPCGGetBoundsSettings::CreateElement() const
bool FPCGGetBoundsElement::ExecuteInternal(FPCGContext* Context) const
{
TRACE_CPUPROFILER_EVENT_SCOPE(FPCGGetBoundsElement::Execute);
const TArray<FPCGTaggedData>& Inputs = Context->InputData.TaggedData;
bool bEmittedUnboundedDataWarning = false;

View File

@@ -113,6 +113,8 @@ EPCGChangeType UPCGHiGenGridSizeSettings::GetChangeTypeForProperty(const FName&
bool FPCGHiGenGridSizeElement::ExecuteInternal(FPCGContext* Context) const
{
TRACE_CPUPROFILER_EVENT_SCOPE(FPCGHiGenGridSizeElement::Execute);
// Validation
check(Context);
if (Context->Node && Context->Node->GetGraph() && !Context->Node->GetGraph()->IsHierarchicalGenerationEnabled())

View File

@@ -141,6 +141,8 @@ FPCGElementPtr UPCGUserParameterGetSettings::CreateElement() const
bool FPCGUserParameterGetElement::ExecuteInternal(FPCGContext* Context) const
{
TRACE_CPUPROFILER_EVENT_SCOPE(FPCGUserParameterGetElement::Execute);
check(Context);
const UPCGUserParameterGetSettings* Settings = Context->GetInputSettings<UPCGUserParameterGetSettings>();

View File

@@ -54,5 +54,5 @@ public:
virtual bool ShouldComputeFullOutputDataCrc(FPCGContext* Context) const override { return true; }
protected:
virtual bool ExecuteInternal(FPCGContext* Context) const;
virtual bool ExecuteInternal(FPCGContext* Context) const override;
};

View File

@@ -37,5 +37,5 @@ public:
virtual bool ShouldComputeFullOutputDataCrc(FPCGContext* Context) const override { return true; }
protected:
virtual bool ExecuteInternal(FPCGContext* Context) const;
virtual bool ExecuteInternal(FPCGContext* Context) const override;
};

View File

@@ -41,7 +41,7 @@ public:
class FPCGLinearDensityRemapElement : public IPCGElement
{
protected:
virtual bool ExecuteInternal(FPCGContext* Context) const;
virtual bool ExecuteInternal(FPCGContext* Context) const override;
};
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

View File

@@ -50,7 +50,7 @@ public:
class FPCGDensityRemapElement : public FPCGPointProcessingElementBase
{
protected:
virtual bool ExecuteInternal(FPCGContext* Context) const;
virtual bool ExecuteInternal(FPCGContext* Context) const override;
};
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

View File

@@ -49,7 +49,7 @@ public:
class FPCGPointExtentsModifier : public FPCGPointProcessingElementBase
{
protected:
virtual bool ExecuteInternal(FPCGContext* Context) const;
virtual bool ExecuteInternal(FPCGContext* Context) const override;
};
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2