Files
UnrealEngine/Engine/Source/Editor/UnrealEd/Private/Cooker/StalledIterationCounter.h
2025-05-18 13:04:45 +08:00

23 lines
492 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
namespace UE::Cook
{
/**
* Small structure used to keep track of a value and for how many iteration the value didn't change. It's used
* more specifically in the cooker to detect when the cooker is stalling and no progress is being done.
*/
struct FStalledIterationCounter
{
FStalledIterationCounter();
void Update(int32 NewValue);
int32 Value;
int32 StalledIterationCount;
};
}