Merge branch 'development' into cmake/linux_fix_warn_unused
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> # Conflicts: # Code/Legacy/CrySystem/Log.cpp # Code/Tools/Standalone/Source/Driller/Annotations/AnnotationHeaderView.cpp # Code/Tools/Standalone/Source/Driller/AreaChart.cpp # Code/Tools/Standalone/Source/Driller/AreaChart.hxx # Code/Tools/Standalone/Source/Driller/ChannelDataView.cpp # Code/Tools/Standalone/Source/Driller/DrillerCaptureWindow.cpp # Code/Tools/Standalone/Source/Driller/Profiler/ProfilerDataView.cpp
This commit is contained in:
@@ -1898,7 +1898,6 @@ static void LogDecompTimer(__int64 nTotalTicks, __int64 nDecompTicks, __int64 nA
|
||||
|
||||
AZStd::string CLocalizedStringsManager::SLocalizedStringEntry::GetTranslatedText(const SLanguage* pLanguage) const
|
||||
{
|
||||
FUNCTION_PROFILER_FAST(GetISystem(), PROFILE_SYSTEM, g_bProfilerEnabled);
|
||||
if ((flags & IS_COMPRESSED) != 0)
|
||||
{
|
||||
#if defined(LOG_DECOMP_TIMES)
|
||||
|
||||
@@ -396,7 +396,6 @@ void CLog::LogV(const ELogType type, [[maybe_unused]]int flags, const char* szFo
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION_PROFILER(GetISystem(), PROFILE_SYSTEM);
|
||||
|
||||
bool bfile = false, bconsole = false;
|
||||
const char* szCommand = szFormat;
|
||||
@@ -1439,8 +1438,6 @@ void CLog::RemoveCallback(ILogCallback* pCallback)
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CLog::Update()
|
||||
{
|
||||
FUNCTION_PROFILER_FAST(m_pSystem, PROFILE_SYSTEM, g_bProfilerEnabled);
|
||||
|
||||
if (CryGetCurrentThreadId() == m_nMainThreadId)
|
||||
{
|
||||
if (!m_threadSafeMsgQueue.empty())
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <AzFramework/API/ApplicationAPI.h>
|
||||
#include <AzFramework/API/ApplicationAPI_Platform.h>
|
||||
#include <AzFramework/Input/Devices/Keyboard/InputDeviceKeyboard.h>
|
||||
#include <AzCore/Debug/Profiler.h>
|
||||
#include <AzCore/Debug/EventTrace.h>
|
||||
#include <AzCore/Debug/Trace.h>
|
||||
#include <AzCore/Debug/IEventLogger.h>
|
||||
#include <AzCore/Interface/Interface.h>
|
||||
@@ -605,8 +607,6 @@ ISystem* CSystem::GetCrySystem()
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CSystem::SleepIfNeeded()
|
||||
{
|
||||
FUNCTION_PROFILER_FAST(this, PROFILE_SYSTEM, g_bProfilerEnabled);
|
||||
|
||||
ITimer* const pTimer = gEnv->pTimer;
|
||||
static bool firstCall = true;
|
||||
|
||||
@@ -684,7 +684,6 @@ bool CSystem::UpdatePreTickBus(int updateFlags, int nPauseMode)
|
||||
_mm_setcsr(_mm_getcsr() & ~0x280 | (g_cvars.sys_float_exceptions > 0 ? 0 : 0x280));
|
||||
#endif //WIN32
|
||||
|
||||
FUNCTION_PROFILER_LEGACYONLY(GetISystem(), PROFILE_SYSTEM);
|
||||
AZ_TRACE_METHOD();
|
||||
|
||||
m_nUpdateCounter++;
|
||||
@@ -778,8 +777,6 @@ bool CSystem::UpdatePreTickBus(int updateFlags, int nPauseMode)
|
||||
//limit frame rate if vsync is turned off
|
||||
//for consoles this is done inside renderthread to be vsync dependent
|
||||
{
|
||||
FRAME_PROFILER_LEGACYONLY("FRAME_CAP", gEnv->pSystem, PROFILE_SYSTEM);
|
||||
AZ_TRACE_METHOD_NAME("FrameLimiter");
|
||||
static ICVar* pSysMaxFPS = NULL;
|
||||
static ICVar* pVSync = NULL;
|
||||
|
||||
@@ -828,7 +825,6 @@ bool CSystem::UpdatePreTickBus(int updateFlags, int nPauseMode)
|
||||
//update console system
|
||||
if (m_env.pConsole)
|
||||
{
|
||||
FRAME_PROFILER("SysUpdate:Console", this, PROFILE_SYSTEM);
|
||||
m_env.pConsole->Update();
|
||||
}
|
||||
|
||||
@@ -844,7 +840,6 @@ bool CSystem::UpdatePreTickBus(int updateFlags, int nPauseMode)
|
||||
// Run movie system pre-update
|
||||
if (!bNoUpdate)
|
||||
{
|
||||
FRAME_PROFILER("SysUpdate:UpdateMovieSystem", this, PROFILE_SYSTEM);
|
||||
UpdateMovieSystem(updateFlags, fMovieFrameTime, true);
|
||||
}
|
||||
|
||||
@@ -860,7 +855,6 @@ bool CSystem::UpdatePostTickBus(int updateFlags, int /*nPauseMode*/)
|
||||
if (!m_bNoUpdate)
|
||||
{
|
||||
const float fMovieFrameTime = m_Time.GetFrameTime(ITimer::ETIMER_UI);
|
||||
FRAME_PROFILER("SysUpdate:UpdateMovieSystem", this, PROFILE_SYSTEM);
|
||||
UpdateMovieSystem(updateFlags, fMovieFrameTime, false);
|
||||
}
|
||||
|
||||
@@ -868,7 +862,6 @@ bool CSystem::UpdatePostTickBus(int updateFlags, int /*nPauseMode*/)
|
||||
// Update sound system
|
||||
if (!m_bNoUpdate)
|
||||
{
|
||||
FRAME_PROFILER("SysUpdate:UpdateAudioSystems", this, PROFILE_SYSTEM);
|
||||
UpdateAudioSystems();
|
||||
}
|
||||
|
||||
@@ -895,10 +888,7 @@ bool CSystem::UpdatePostTickBus(int updateFlags, int /*nPauseMode*/)
|
||||
m_updateTimes.push_back(std::make_pair(cur_time, updateTime));
|
||||
}
|
||||
|
||||
{
|
||||
FRAME_PROFILER("SysUpdate - SystemEventDispatcher::Update", this, PROFILE_SYSTEM);
|
||||
m_pSystemEventDispatcher->Update();
|
||||
}
|
||||
m_pSystemEventDispatcher->Update();
|
||||
|
||||
if (!gEnv->IsEditing() && m_eRuntimeState == ESYSTEM_EVENT_LEVEL_GAMEPLAY_START)
|
||||
{
|
||||
@@ -919,8 +909,6 @@ bool CSystem::UpdateLoadtime()
|
||||
|
||||
void CSystem::UpdateAudioSystems()
|
||||
{
|
||||
AZ_TRACE_METHOD();
|
||||
FRAME_PROFILER_LEGACYONLY("SysUpdate:Audio", this, PROFILE_SYSTEM);
|
||||
Audio::AudioSystemRequestBus::Broadcast(&Audio::AudioSystemRequestBus::Events::ExternalUpdate);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "CrySystem_precompiled.h"
|
||||
#include "SystemEventDispatcher.h"
|
||||
#include <AzCore/Debug/EventTrace.h>
|
||||
|
||||
CSystemEventDispatcher::CSystemEventDispatcher()
|
||||
: m_listeners(0)
|
||||
|
||||
@@ -97,7 +97,6 @@
|
||||
#include <CrySystemBus.h>
|
||||
#include <AzCore/Jobs/JobFunction.h>
|
||||
#include <AzCore/Jobs/JobManagerBus.h>
|
||||
#include <AzFramework/Driller/DrillerConsoleAPI.h>
|
||||
|
||||
#if defined(ANDROID)
|
||||
#include <AzCore/Android/Utils.h>
|
||||
@@ -1679,46 +1678,6 @@ void CmdSetAwsLogLevel(IConsoleCmdArgs* pArgs)
|
||||
}
|
||||
}
|
||||
|
||||
void CmdDrillToFile(IConsoleCmdArgs* pArgs)
|
||||
{
|
||||
if (azstricmp(pArgs->GetArg(0), "DrillerStop") == 0)
|
||||
{
|
||||
EBUS_EVENT(AzFramework::DrillerConsoleCommandBus, StopDrillerSession, AZ::Crc32("DefaultDrillerSession"));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (pArgs->GetArgCount() > 1)
|
||||
{
|
||||
AZ::Debug::DrillerManager::DrillerListType drillersToEnable;
|
||||
for (int iArg = 1; iArg < pArgs->GetArgCount(); ++iArg)
|
||||
{
|
||||
if (azstricmp(pArgs->GetArg(iArg), "Replica") == 0)
|
||||
{
|
||||
drillersToEnable.push_back();
|
||||
drillersToEnable.back().id = AZ::Crc32("ReplicaDriller");
|
||||
}
|
||||
else if (azstricmp(pArgs->GetArg(iArg), "Carrier") == 0)
|
||||
{
|
||||
drillersToEnable.push_back();
|
||||
drillersToEnable.back().id = AZ::Crc32("CarrierDriller");
|
||||
}
|
||||
else
|
||||
{
|
||||
CryLogAlways("Driller %s not supported.", pArgs->GetArg(iArg));
|
||||
}
|
||||
}
|
||||
EBUS_EVENT(AzFramework::DrillerConsoleCommandBus, StartDrillerSession, drillersToEnable, AZ::Crc32("DefaultDrillerSession"));
|
||||
}
|
||||
else
|
||||
{
|
||||
CryLogAlways("Syntax: DrillerStart [Driller1] [Driller2] [...]");
|
||||
CryLogAlways("Supported Drillers:");
|
||||
CryLogAlways(" Carrier");
|
||||
CryLogAlways(" Replica");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CSystem::CreateSystemVars()
|
||||
{
|
||||
@@ -2084,9 +2043,6 @@ void CSystem::CreateSystemVars()
|
||||
// By default it is now enabled. Modify system.cfg or game.cfg to disable it
|
||||
REGISTER_INT("sys_enableCanvasEditor", 1, VF_NULL, "Enables the UI Canvas Editor");
|
||||
|
||||
REGISTER_COMMAND_DEV_ONLY("DrillerStart", CmdDrillToFile, VF_DEV_ONLY, "Start a driller capture.");
|
||||
REGISTER_COMMAND_DEV_ONLY("DrillerStop", CmdDrillToFile, VF_DEV_ONLY, "Stop a driller capture.");
|
||||
|
||||
REGISTER_COMMAND("sys_SetLogLevel", CmdSetAwsLogLevel, 0, "Set AWS log level [0 - 6].");
|
||||
}
|
||||
|
||||
|
||||
@@ -172,8 +172,6 @@ CViewSystem::~CViewSystem()
|
||||
//------------------------------------------------------------------------
|
||||
void CViewSystem::Update(float frameTime)
|
||||
{
|
||||
FUNCTION_PROFILER(GetISystem(), PROFILE_ACTION);
|
||||
|
||||
if (gEnv->IsDedicated())
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user