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

24 lines
513 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "StalledIterationCounter.h"
namespace UE::Cook
{
/**
* Class used to detect when the cook is not making progress. It does it by keeping track of the number
* of cooked packages and packages in progress.
*/
class FStallDetector
{
public:
bool IsStalled(int32 NewPackageCooked, int32 NewPackageInProgress);
private:
FStalledIterationCounter StalledPackageCooked;
FStalledIterationCounter StalledPackageInProgress;
};
}