Skip to content

Commit be47ce0

Browse files
committed
Project: PROFILE_CRITICAL_SECTIONS -> CONFIG_PROFILE_LOCKS.
1 parent 21eb73a commit be47ce0

32 files changed

+95
-95
lines changed

src/Layers/xrRender/SkeletonCustom.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#endif
1111
int psSkeletonUpdate = 32;
1212
Lock UCalc_Mutex
13-
#ifdef PROFILE_CRITICAL_SECTIONS
13+
#ifdef CONFIG_PROFILE_LOCKS
1414
(MUTEX_PROFILE_ID(UCalc_Mutex))
15-
#endif // PROFILE_CRITICAL_SECTIONS
15+
#endif // CONFIG_PROFILE_LOCKS
1616
;
1717

1818
#ifndef _EDITOR

src/Layers/xrRender/WallmarksEngine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ CWallmarksEngine::wm_slot* CWallmarksEngine::AppendSlot (ref_shader shader)
4646
//////////////////////////////////////////////////////////////////////
4747

4848
CWallmarksEngine::CWallmarksEngine ()
49-
#ifdef PROFILE_CRITICAL_SECTIONS
49+
#ifdef CONFIG_PROFILE_LOCKS
5050
:lock(MUTEX_PROFILE_ID(CWallmarksEngine))
51-
#endif // PROFILE_CRITICAL_SECTIONS
51+
#endif // CONFIG_PROFILE_LOCKS
5252
{
5353
static_pool.reserve (256);
5454
marks.reserve (256);

src/utils/xrAI/game_spawn_constructor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ extern LPCSTR generate_temp_file_name (LPCSTR header0, LPCSTR header1, string_
2222
#define NO_MULTITHREADING
2323

2424
CGameSpawnConstructor::CGameSpawnConstructor (LPCSTR name, LPCSTR output, LPCSTR start, bool no_separator_check) :
25-
#ifdef PROFILE_CRITICAL_SECTIONS
25+
#ifdef CONFIG_PROFILE_LOCKS
2626
m_critical_section(MUTEX_PROFILE_ID(CGameSpawnConstructor)),
27-
#endif // PROFILE_CRITICAL_SECTIONS
27+
#endif // CONFIG_PROFILE_LOCKS
2828
m_thread_manager(ProxyStatus, ProxyProgress)
2929
{
3030
load_spawns (name,no_separator_check);

src/utils/xrLC/OGF_Face.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ void OGF::Optimize ()
257257

258258
// Make Progressive
259259
Lock progressive_cs
260-
#ifdef PROFILE_CRITICAL_SECTIONS
260+
#ifdef CONFIG_PROFILE_LOCKS
261261
(MUTEX_PROFILE_ID(progressive_cs))
262-
#endif // PROFILE_CRITICAL_SECTIONS
262+
#endif // CONFIG_PROFILE_LOCKS
263263
;
264264
void OGF::MakeProgressive (float metric_limit)
265265
{

src/utils/xrLC/xrLight.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#include "utils/xrLC_Light/lcnet_task_manager.h"
1313
#include "utils/xrLC_Light/mu_model_light.h"
1414
Lock task_CS
15-
#ifdef PROFILE_CRITICAL_SECTIONS
15+
#ifdef CONFIG_PROFILE_LOCKS
1616
(MUTEX_PROFILE_ID(task_C_S))
17-
#endif // PROFILE_CRITICAL_SECTIONS
17+
#endif // CONFIG_PROFILE_LOCKS
1818
;
1919

2020
xr_vector<int> task_pool;

src/utils/xrLC/xrPhase_GI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const u32 gi_maxlevel = 4;
1818
//////////////////////////////////////////////////////////////////////////
1919
static xr_vector<R_Light>* task;
2020
Lock task_cs
21-
#ifdef PROFILE_CRITICAL_SECTIONS
21+
#ifdef CONFIG_PROFILE_LOCKS
2222
(MUTEX_PROFILE_ID(task_cs))
23-
#endif // PROFILE_CRITICAL_SECTIONS
23+
#endif // CONFIG_PROFILE_LOCKS
2424
;
2525
static u32 task_it;
2626

src/utils/xrLCUtil/LevelCompilerLoggerWindow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class XRLCUTIL_API LevelCompilerLoggerWindow : public ILevelCompilerLogger
1414
HWND hwPText = 0;
1515
HWND hwPhaseTime = 0;
1616
Lock csLog
17-
#ifdef PROFILE_CRITICAL_SECTIONS
17+
#ifdef CONFIG_PROFILE_LOCKS
1818
(MUTEX_PROFILE_ID(csLog))
1919
#endif
2020
;

src/utils/xrLC_Light/xrLightVertex.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ typedef xr_multimap<float,vecVertex> mapVert;
1111
typedef mapVert::iterator mapVertIt;
1212
mapVert* g_trans;
1313
Lock g_trans_CS
14-
#ifdef PROFILE_CRITICAL_SECTIONS
14+
#ifdef CONFIG_PROFILE_LOCKS
1515
(MUTEX_PROFILE_ID(g_trans_CS))
16-
#endif // PROFILE_CRITICAL_SECTIONS
16+
#endif // CONFIG_PROFILE_LOCKS
1717
;
1818
extern XRLC_LIGHT_API void LightPoint (CDB::COLLIDER* DB, CDB::MODEL* MDL, base_color_c &C, Fvector &P, Fvector &N, base_lighting& lights, u32 flags, Face* skip);
1919

@@ -67,9 +67,9 @@ class CVertexLightTasker
6767
volatile u32 index;
6868
public:
6969
CVertexLightTasker () : index(0)
70-
#ifdef PROFILE_CRITICAL_SECTIONS
70+
#ifdef CONFIG_PROFILE_LOCKS
7171
,cs(MUTEX_PROFILE_ID(CVertexLightTasker))
72-
#endif // PROFILE_CRITICAL_SECTIONS
72+
#endif // CONFIG_PROFILE_LOCKS
7373
{};
7474

7575
void init ()

src/xrCDB/ISpatial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ void ISpatial_NODE::_remove (ISpatial* S)
143143
//////////////////////////////////////////////////////////////////////////
144144

145145
ISpatial_DB::ISpatial_DB(const char *name)
146-
#ifdef PROFILE_CRITICAL_SECTIONS
146+
#ifdef CONFIG_PROFILE_LOCKS
147147
:cs(MUTEX_PROFILE_ID(ISpatial_DB))
148-
#endif // PROFILE_CRITICAL_SECTIONS
148+
#endif // CONFIG_PROFILE_LOCKS
149149
{
150150
m_root = NULL;
151151
xr_strcpy(Name, name);

src/xrCDB/xrCDB.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ BOOL APIENTRY DllMain( HANDLE hModule,
3737

3838
// Model building
3939
MODEL::MODEL ()
40-
#ifdef PROFILE_CRITICAL_SECTIONS
40+
#ifdef CONFIG_PROFILE_LOCKS
4141
:cs(MUTEX_PROFILE_ID(MODEL))
42-
#endif // PROFILE_CRITICAL_SECTIONS
42+
#endif // CONFIG_PROFILE_LOCKS
4343
{
4444
tree = 0;
4545
tris = 0;

0 commit comments

Comments
 (0)