This commit is contained in:
Wojtek Figat
2021-07-07 10:14:51 +02:00
parent 3cfdf8871f
commit d17a4af72e
2 changed files with 4 additions and 2 deletions

View File

@@ -16,11 +16,12 @@ class AssetsCache;
API_STRUCT() struct FLAXENGINE_API ContentStats
{
DECLARE_SCRIPTING_TYPE_MINIMAL(ContentStats);
// Amount of asset objects in memory.
API_FIELD() int32 AssetsCount = 0;
// Amount of loaded assets.
API_FIELD() int32 LoadedAssetsCount = 0;
// Amount of loading assets.
// Amount of loading assets. Zero if all assets are loaded in.
API_FIELD() int32 LoadingAssetsCount = 0;
// Amount of virtual assets (don't have representation in file).
API_FIELD() int32 VirtualAssetsCount = 0;

View File

@@ -57,7 +57,8 @@ void ProfilingToolsService::Update()
for (int32 i = 0; i < threads.Count(); i++)
{
auto t = threads[i];
if (t == nullptr)
continue;
ProfilingTools::ThreadStats* pt = nullptr;
for (auto& e : ProfilingTools::EventsCPU)
{