Fix compilation errors when Optick profiling is off

This commit is contained in:
Stephen Saunders 2023-03-04 16:39:43 -05:00
parent c5aa8afe8a
commit 76da1beefd
5 changed files with 15 additions and 1 deletions

View file

@ -71,7 +71,9 @@ class idSGFcompressThread : public idSysThread
public:
virtual int Run()
{
#if USE_OPTICK
OPTICK_THREAD( "idSGFcompressThread" );
#endif
sgf->CompressBlock();
return 0;
@ -83,7 +85,9 @@ class idSGFdecompressThread : public idSysThread
public:
virtual int Run()
{
#if USE_OPTICK
OPTICK_THREAD( "idSGFdecompressThread" );
#endif
sgf->DecompressBlock();
return 0;
@ -95,7 +99,9 @@ class idSGFwriteThread : public idSysThread
public:
virtual int Run()
{
#if USE_OPTICK
OPTICK_THREAD( "idSGFwriteThread" );
#endif
sgf->WriteBlock();
return 0;
@ -107,7 +113,9 @@ class idSGFreadThread : public idSysThread
public:
virtual int Run()
{
#if USE_OPTICK
OPTICK_THREAD( "idSGFreadThread" );
#endif
sgf->ReadBlock();
return 0;

View file

@ -90,7 +90,9 @@ be called directly in the foreground thread for comparison.
*/
int idGameThread::Run()
{
#if USE_OPTICK
OPTICK_THREAD( "idGameThread" );
#endif
commonLocal.frameTiming.startGameTime = Sys_Microseconds();

View file

@ -1145,7 +1145,9 @@ idJobThread::Run
*/
int idJobThread::Run()
{
#if USE_OPTICK
OPTICK_THREAD( GetName() );
#endif
threadJobListState_t threadJobListState[MAX_JOBLISTS];
int numJobLists = 0;

View file

@ -107,7 +107,7 @@ const int MAX_EXPRESSION_REGISTERS = 4096;
#endif
// RB: make Optick profiling available everywhere
#if defined( USE_OPTICK )
#if USE_OPTICK
#include "../libs/optick/optick.h"
#endif

View file

@ -746,7 +746,9 @@ idSaveGameThread::Run
*/
int idSaveGameThread::Run()
{
#if USE_OPTICK
OPTICK_THREAD( "idSaveGameThread" );
#endif
int ret = ERROR_SUCCESS;