Skip to main content
  1. Posts/

Controlling C++ Compile Optimization

English Post Programming C++

If you want to debug your code while you didn’t compile your project with the DebugGame setting.

You might end up with see an optimized variable in which you can’t see what’s in it.

In that case, you can disable optimization on a specific section of your code.

Like this.

#pragma optimize("", off)
void AVCharacter::NotOptimized()
{
	//Some Codes
}
#pragma optimize("", on)

void AVCharacter::Optimized()
{
	//Some Codes
}

Related

TActorIterator and TActorRange
English Post Programming UnrealEngine C++ Unreal Engine
How To Check Viewport Is Focused
English Post Programming UnrealEngine C++ Unreal Engine
How To Check Class Is From Native Or Blueprint
English Post Programming UnrealEngine C++ Unreal Engine Class
How To Iterate Over UENUM
English Post Programming Unreal Engine C++ Unreal Engine Enum
C++ Compile Optimization 일부분만 해제하는 방법
Korean Post Programming C++ Optimize
Game Server Development #11 : Cache
Korean Post Programming C++ Server Cache