Skip to content

Commit a644bf5

Browse files
committed
A little logging changes
Also fix includes
1 parent 65ac56a commit a644bf5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Layers/xrRender/ResourceManager.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
#include "ResourceManager.h"
1414
#include "tss.h"
15-
#include "blenders\blender.h"
16-
#include "blenders\blender_recorder.h"
15+
#include "blenders/blender.h"
16+
#include "blenders/blender_recorder.h"
1717
#include "xrCore/Threading/ThreadPool.hpp"
1818

1919
// Already defined in Texture.cpp
@@ -358,7 +358,9 @@ void CResourceManager::DeferredUpload()
358358
if (!RDEVICE.b_is_Ready)
359359
return;
360360

361+
#ifdef DEBUG
361362
Msg("%s, amount of textures = %d", __FUNCTION__ , m_textures.size());
363+
#endif
362364

363365
CTimer timer;
364366
timer.Start();
@@ -375,7 +377,10 @@ void CResourceManager::DeferredUpload()
375377
ttapi.wait();
376378

377379
textures_to_load.clear();
380+
381+
#ifdef DEBUG
378382
Msg("%s, texture loading time = %d", __FUNCTION__, timer.GetElapsed_ms());
383+
#endif
379384
}
380385
/*
381386
void CResourceManager::DeferredUnload ()

src/xrEngine/IGame_Persistent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ void IGame_Persistent::Prefetch()
153153
ObjectPool.prefetch();
154154
Log("Loading models...");
155155
GEnv.Render->models_Prefetch();
156+
Log("Loading textures...");
156157
GEnv.Render->ResourcesDeferredUpload();
157158

158159
p_time = 1000.f * Device.GetTimerGlobal()->GetElapsed_sec() - p_time;

0 commit comments

Comments
 (0)