Skip to content

Commit 09e5835

Browse files
committed
refactor: Remove obsolete pragma optimize directives
1 parent 2bbf902 commit 09e5835

File tree

6 files changed

+1
-26
lines changed

6 files changed

+1
-26
lines changed

Core/Libraries/Source/WWVegas/WW3D2/aabtree.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,6 @@ bool AABTreeClass::Intersect_OBBox_Recursive(AABTreeClass::CullNodeStruct * node
724724
return res;
725725
}
726726

727-
#ifdef RTS_DEBUG
728-
#pragma optimize("", off) // We get an odd error when using optimized in the debug.
729-
// All optimized seems to work. jba.
730-
#endif
731727
/***********************************************************************************************
732728
* AABTreeClass::Cast_Ray_To_Polys -- cast the ray to polys in the given node *
733729
* *
@@ -787,10 +783,6 @@ bool AABTreeClass::Cast_Ray_To_Polys(CullNodeStruct * node,RayCollisionTestClass
787783
}
788784
return false;
789785
}
790-
#ifdef RTS_DEBUG
791-
#pragma optimize("", on)
792-
#endif
793-
794786

795787
/***********************************************************************************************
796788
* AABTreeClass::Cast_Semi_Infinite_Axis_Aligned_Ray_To_Polys -- cast ray to polys in the node *

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Water/W3DWaterTracks.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@
6262
#include "assetmgr.h"
6363
#include "WW3D2/dx8wrapper.h"
6464

65-
//#pragma optimize("", off)
66-
6765
//#define ALLOW_WATER_TRACK_EDIT
6866

6967
//number of vertex pages allocated - allows double buffering of vertex updates.

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/render2d.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@
5858
#include "wwmemlog.h"
5959
#include "assetmgr.h"
6060

61-
//#pragma optimize("", off)
62-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
63-
6461
RectClass Render2DClass::ScreenResolution( 0,0,0,0 );
6562

6663

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/texture.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
#include "texturethumbnail.h"
6060
#include "wwprofile.h"
6161

62-
//#pragma optimize("", off)
63-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
64-
6562
const unsigned DEFAULT_INACTIVATION_TIME=20000;
6663

6764
/*

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/textureloader.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@
6262
#include "bitmaphandler.h"
6363
#include "wwprofile.h"
6464

65-
//#pragma optimize("", off)
66-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
67-
6865
bool TextureLoader::TextureLoadSuspended;
6966
int TextureLoader::TextureInactiveOverrideTime = 0;
7067

GeneralsMD/Code/Tools/WorldBuilder/src/DrawObject.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,12 +2056,6 @@ void DrawObject::setRampFeedbackParms(const Coord3D *start, const Coord3D *end,
20562056
}
20572057

20582058

2059-
// This routine fails to draw poly triggers in some cases when optimized.
2060-
// So just shut it off for now. The failure case was new doc, add a poly trigger.
2061-
// Adding any other object fixed the problem. jba
2062-
2063-
#pragma optimize("", off)
2064-
20652059
bool _skip_drawobject_render = false;
20662060

20672061
/** Render draws into the current 3d context. */
@@ -2457,7 +2451,7 @@ if (pMapObj->isSelected()) {
24572451
m_lineRenderer->Reset();
24582452
}
24592453
}
2460-
#pragma optimize("", on)
2454+
24612455

24622456
void BuildRectFromSegmentAndWidth(const Coord3D* start, const Coord3D* end, Real width,
24632457
Coord3D* outBL, Coord3D* outTL, Coord3D* outBR, Coord3D* outTR)

0 commit comments

Comments
 (0)