You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#lockdown Nick.Penwarden ========================== MAJOR FEATURES + CHANGES ========================== Change 2870336 on 2016/02/17 by Marc.Audy Continued splitting up Orion Build * Restructure from platform based MakeBuild steps in to a PS4, Server, and Windows Client MakeBuild * Cook server data only once for both Windows and Linux (windows reuses Linux server data) * Split compilation of Win64 Client and Server such that MakeBuild_Server only builds Server and MakeBuild_WindowsClient only builds Client #jira UEB-580 #rb Ben.Marsh #tests Preflight and generated Windows Client and Server work to play game Change 2870026 on 2016/02/17 by Wes.Hunt Don't allow array shrinking when removing the corruption wrapper trailer. #rb none Updating CIS Counter Change 2869725 on 2016/02/17 by Dmitry.Rekman More analytics and QoS stats added for 0.19. #rb none #tests Ran Windows client and Linux server on compatible content. Change 2869705 on 2016/02/16 by Ryan.Gerleve Fix replicated properties and call RepNotifies of startup actors when scrubbing in replays. This is the engine support for fixing OR-6817, towers not respawning when rewinding replays. #rb john.pollard #tests golden path, replays, ps4 nomcp Change 2869644 on 2016/02/16 by Jason.Bestimt #ORION_DEV - Merge MAIN (0.18) at CL# 2869635 #Tests:none #RB:none Change 2869586 on 2016/02/16 by Marcus.Wassmer Fix texturestreaming RHI flushes. #rb none #test goldenpath #codereview Gil.Gribb Change 2869279 on 2016/02/16 by Lukasz.Furman fixed minion hit reaction directions #orion OR-13953 #rb Mieszko.Zielinski #tests PIE: hit minions with various abilities from different angles, checked velocity of death particles when killed by abilities and towers #codereview Dan.Youhon Change 2869277 on 2016/02/16 by Wes.Hunt During cook, when a package is not ready to save, actually early out of the saving code. Saves somewhere in the 130s to 200s range for cooks. #rb daniel.lamb #tests local windows cooks, preflight PS4 cooks Change 2869132 on 2016/02/16 by Mieszko.Zielinski Added a function to AISenseConfig allowing native-code MaxAge configuration #UE4 #rb Lukasz.Furman #test none required Change 2868981 on 2016/02/16 by Wes.Hunt remove -LogCookStats cmdline check, always log cook stats. -SendCookAnalytics flag is still used. This was requested by NickP. #rb none #tests local windows cooks Change 2868975 on 2016/02/16 by Wes.Hunt Don't submit DDC usage stats for zero-sized events. #rb none #tests local windows cook Change 2868956 on 2016/02/16 by Jason.Bestimt #ORION_DEV - Merge MAIN (0.18) at CL# 2868926 #RB:none #Tests:none Change 2868889 on 2016/02/16 by Max.Chen Sequencer: Only allow transport control binding when editing level editor sequencers. #rb none #tests none Change 2868663 on 2016/02/16 by David.Ratti downgrade warning to display #rb none #tests compile Change 2868624 on 2016/02/16 by Marcus.Wassmer Re-Enable Defrag validation for devgeneral #rb none #test none Change 2868493 on 2016/02/16 by Benn.Gallagher Added a few more stats to morph target updates to try and narrow down hitches #rb Bruce.Nesbit #tests pie, -game Win64 Change 2868445 on 2016/02/16 by Dmitry.Rekman Linux: report crashes due to stack overflow (OR-14519). - Reserve memory for alternative stack for signal handlers. Adds about 128KB memory per thread. - Force process spawning to use vfork() when no pipes are needed. - Ignore all signals except explicitly handled. - Prevent signals from being raised while another one is handled. - Added "debug threadrecurse" and "debug threadstackoverflow" to test that. [CL 2873763 by Andrew Grant in Main branch]
126 lines
4.9 KiB
C++
126 lines
4.9 KiB
C++
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#pragma once
|
|
|
|
class FDerivedDataCacheUsageStats;
|
|
|
|
DECLARE_LOG_CATEGORY_EXTERN(LogDerivedDataCache, Log, All);
|
|
|
|
DECLARE_DWORD_ACCUMULATOR_STAT_EXTERN(TEXT("Num Gets"),STAT_DDC_NumGets,STATGROUP_DDC, );
|
|
DECLARE_DWORD_ACCUMULATOR_STAT_EXTERN(TEXT("Num Puts"),STAT_DDC_NumPuts,STATGROUP_DDC, );
|
|
DECLARE_DWORD_ACCUMULATOR_STAT_EXTERN(TEXT("Num Build"),STAT_DDC_NumBuilds,STATGROUP_DDC, );
|
|
DECLARE_DWORD_ACCUMULATOR_STAT_EXTERN(TEXT("Num Exists"),STAT_DDC_NumExist,STATGROUP_DDC, );
|
|
DECLARE_FLOAT_ACCUMULATOR_STAT_EXTERN(TEXT("Sync Get Time"),STAT_DDC_SyncGetTime,STATGROUP_DDC, );
|
|
DECLARE_FLOAT_ACCUMULATOR_STAT_EXTERN(TEXT("ASync Wait Time"),STAT_DDC_ASyncWaitTime,STATGROUP_DDC, );
|
|
DECLARE_FLOAT_ACCUMULATOR_STAT_EXTERN(TEXT("Sync Put Time"),STAT_DDC_PutTime,STATGROUP_DDC, );
|
|
DECLARE_FLOAT_ACCUMULATOR_STAT_EXTERN(TEXT("Sync Build Time"),STAT_DDC_SyncBuildTime,STATGROUP_DDC, );
|
|
DECLARE_FLOAT_ACCUMULATOR_STAT_EXTERN(TEXT("Exists Time"),STAT_DDC_ExistTime,STATGROUP_DDC, );
|
|
|
|
/**
|
|
* Interface for cache server backends.
|
|
* The entire API should be callable from any thread (except the singleton can be assumed to be called at least once before concurrent access).
|
|
**/
|
|
class FDerivedDataBackendInterface
|
|
{
|
|
public:
|
|
virtual ~FDerivedDataBackendInterface()
|
|
{
|
|
}
|
|
|
|
/** return true if this cache is writable **/
|
|
virtual bool IsWritable()=0;
|
|
|
|
/**
|
|
* return true if hits on this cache should propagate to lower cache level. Typically false for a PAK file.
|
|
* Caution! This generally isn't propagated, so the thing that returns false must be a direct child of the heirarchical cache.
|
|
**/
|
|
virtual bool BackfillLowerCacheLevels()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Synchronous test for the existence of a cache item
|
|
*
|
|
* @param CacheKey Alphanumeric+underscore key of this cache item
|
|
* @return true if the data probably will be found, this can't be guaranteed because of concurrency in the backends, corruption, etc
|
|
*/
|
|
virtual bool CachedDataProbablyExists(const TCHAR* CacheKey)=0;
|
|
/**
|
|
* Synchronous retrieve of a cache item
|
|
*
|
|
* @param CacheKey Alphanumeric+underscore key of this cache item
|
|
* @param OutData Buffer to receive the results, if any were found
|
|
* @return true if any data was found, and in this case OutData is non-empty
|
|
*/
|
|
virtual bool GetCachedData(const TCHAR* CacheKey, TArray<uint8>& OutData)=0;
|
|
/**
|
|
* Asynchronous, fire-and-forget placement of a cache item
|
|
*
|
|
* @param CacheKey Alphanumeric+underscore key of this cache item
|
|
* @param InData Buffer containing the data to cache, can be destroyed after the call returns, immediately
|
|
* @param bPutEvenIfExists If true, then do not attempt skip the put even if CachedDataProbablyExists returns true
|
|
*/
|
|
virtual void PutCachedData(const TCHAR* CacheKey, TArray<uint8>& InData, bool bPutEvenIfExists) = 0;
|
|
|
|
/**
|
|
* Remove data from cache (used in the event that corruption is detected at a higher level and possibly house keeping)
|
|
*
|
|
* @param CacheKey Alphanumeric+underscore key of this cache item
|
|
* @param bTransient true if the data is transient and it is up to the backend to decide when and if to remove cached data.
|
|
*/
|
|
virtual void RemoveCachedData(const TCHAR* CacheKey, bool bTransient)=0;
|
|
|
|
/**
|
|
* Retrieve usage stats for this backend. If the backend holds inner backends, this is expected to be passed down recursively.
|
|
* @param UsageStatsMap The map of usages. Each backend instance should give itself a unique name if possible (ie, use the filename associated).
|
|
* @param GraphPath Path to the node in the graph. If you have inner nodes, add their index to the current path as ". <n>".
|
|
* This will create a path such as "0. 1. 0. 2", which can uniquely identify this node.
|
|
*/
|
|
virtual void GatherUsageStats(TMap<FString, FDerivedDataCacheUsageStats>& UsageStatsMap, FString&& GraphPath) = 0;
|
|
};
|
|
|
|
class FDerivedDataBackend
|
|
{
|
|
public:
|
|
/**
|
|
* Singleton to retrieve the GLOBAL backend
|
|
*
|
|
* @return Reference to the global cache backend
|
|
*/
|
|
static FDerivedDataBackend& Get();
|
|
|
|
/**
|
|
* Singleton to retrieve the root cache
|
|
* @return Reference to the global cache root
|
|
*/
|
|
virtual FDerivedDataBackendInterface& GetRoot() = 0;
|
|
|
|
//--------------------
|
|
// System Interface, copied from FDerivedDataCacheInterface
|
|
//--------------------
|
|
|
|
virtual void NotifyBootComplete() = 0;
|
|
virtual void AddToAsyncCompletionCounter(int32 Addend) = 0;
|
|
virtual void WaitForQuiescence(bool bShutdown = false) = 0;
|
|
virtual void GetDirectories(TArray<FString>& OutResults) = 0;
|
|
|
|
/**
|
|
* Mounts a read-only pak file.
|
|
*
|
|
* @param PakFilename Pak filename
|
|
*/
|
|
virtual FDerivedDataBackendInterface* MountPakFile(const TCHAR* PakFilename) = 0;
|
|
|
|
/**
|
|
* Unmounts a read-only pak file.
|
|
*
|
|
* @param PakFilename Pak filename
|
|
*/
|
|
virtual bool UnmountPakFile(const TCHAR* PakFilename) = 0;
|
|
|
|
virtual void GatherUsageStats(TMap<FString, FDerivedDataCacheUsageStats>& UsageStats) = 0;
|
|
|
|
};
|