mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Fix compilation errors when Optick profiling is off
This commit is contained in:
parent
c5aa8afe8a
commit
76da1beefd
5 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1145,7 +1145,9 @@ idJobThread::Run
|
|||
*/
|
||||
int idJobThread::Run()
|
||||
{
|
||||
#if USE_OPTICK
|
||||
OPTICK_THREAD( GetName() );
|
||||
#endif
|
||||
|
||||
threadJobListState_t threadJobListState[MAX_JOBLISTS];
|
||||
int numJobLists = 0;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -746,7 +746,9 @@ idSaveGameThread::Run
|
|||
*/
|
||||
int idSaveGameThread::Run()
|
||||
{
|
||||
#if USE_OPTICK
|
||||
OPTICK_THREAD( "idSaveGameThread" );
|
||||
#endif
|
||||
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue