Little cleanup

This commit is contained in:
Robert Beckebans 2023-03-30 22:58:59 +02:00
parent 49dc6cee46
commit 33b54481d1
5 changed files with 4 additions and 34 deletions

View file

@ -518,7 +518,7 @@ void idCommonLocal::Frame()
// This is the only place this is incremented
idLib::frameNumber++;
OPTICK_TAG( "N", idLib::frameNumber );
//OPTICK_TAG( "N", idLib::frameNumber );
// allow changing SIMD usage on the fly
if( com_forceGenericSIMD.IsModified() )

View file

@ -135,16 +135,6 @@ bool NvrhiContext::operator!=( NvrhiContext& other ) const
static NvrhiContext context;
static NvrhiContext prevContext;
/*
==================
GL_CheckErrors
==================
*/
// RB: added filename, line parms
bool GL_CheckErrors_( const char* filename, int line )
{
return false;
}
/*
==================
@ -1579,7 +1569,7 @@ void idRenderBackend::GL_EndFrame()
uint32_t swapIndex = deviceManager->GetCurrentBackBufferIndex();
OPTICK_EVENT( "EndFrame" );
OPTICK_TAG( "Firing to swapIndex", swapIndex );
//OPTICK_TAG( "Firing to swapIndex", swapIndex );
if( deviceManager->GetGraphicsAPI() == nvrhi::GraphicsAPI::VULKAN )
{
@ -1611,7 +1601,7 @@ void idRenderBackend::GL_BlockingSwapBuffers()
uint32_t swapIndex = deviceManager->GetCurrentBackBufferIndex();
OPTICK_CATEGORY( "BlockingSwapBuffers", Optick::Category::Wait );
OPTICK_TAG( "Waiting for swapIndex", swapIndex );
//OPTICK_TAG( "Waiting for swapIndex", swapIndex );
// SRS - device-level sync kills perf by serializing command queue processing (CPU) and rendering (GPU)
// - instead, use alternative sync method (based on command queue event queries) inside Present()

View file

@ -4843,8 +4843,6 @@ void idRenderBackend::Bloom( const viewDef_t* _viewDef )
// BRIGHTPASS
renderLog.OpenBlock( "Brightpass" );
//GL_CheckErrors();
//Framebuffer::Unbind();
//globalFramebuffers.hdrQuarterFBO->Bind();
@ -5743,9 +5741,6 @@ void idRenderBackend::MotionBlur()
return;
}
GL_CheckErrors();
// clear the alpha buffer and draw only the hands + weapon into it so
// we can avoid blurring them
GL_State( GLS_COLORMASK | GLS_DEPTHMASK );
@ -5830,7 +5825,6 @@ void idRenderBackend::MotionBlur()
globalImages->currentDepthImage->Bind();
DrawElementsWithCounters( &unitSquareSurface );
GL_CheckErrors();
}
/*

View file

@ -45,20 +45,11 @@ If you have questions concerning this license or the applicable additional terms
#if USE_OPTICK
#define USE_OPTICK_GPU 1
#define USE_OPTICK_GPU 0
#else
#define USE_OPTICK_GPU 0
#endif
// TODO remove
bool GL_CheckErrors_( const char* filename, int line );
#if 1 // !defined(RETAIL)
#define GL_CheckErrors() GL_CheckErrors_(__FILE__, __LINE__)
#else
#define GL_CheckErrors() false
#endif
// RB end
struct tmu_t
{
unsigned int current2DMap;

View file

@ -643,8 +643,6 @@ void idRenderSystemLocal::SwapCommandBuffers_FinishRendering(
return;
}
//GL_CheckErrors();
// After coming back from an autoswap, we won't have anything to render
//if( frameData && frameData->cmdHead->next != NULL )
@ -704,9 +702,6 @@ void idRenderSystemLocal::SwapCommandBuffers_FinishRendering(
// RB: resize HDR buffers
Framebuffer::CheckFramebuffers();
// check for errors
GL_CheckErrors();
}
/*