VirtualBox

Ignore:
Timestamp:
Jul 5, 2007 9:42:41 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22653
Message:

Reduce logging overhead

Location:
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxCmd.cpp

    r3339 r3442  
    3737    PVBOX_OGL_CMD        pCmd = (PVBOX_OGL_CMD)pCtx->pCurrentCmd;
    3838
    39     DbgPrintf(("Start %s cParams=%d cbParams=%d\n", pszVBoxOGLCmd[enmOp], cParams, cbParams));
     39    DbgPrintf2(("Start %s cParams=%d cbParams=%d\n", pszVBoxOGLCmd[enmOp], cParams, cbParams));
    4040
    4141    if (pCtx->pCurrentCmd + cParams*VBOX_OGL_CMD_ALIGN + cbParams + sizeof(VBOX_OGL_CMD) >= pCtx->pCmdBufferEnd)
     
    7474    {
    7575    case 1:
    76         DbgPrintf(("Param %s val=%x cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], *(uint8_t *)pParam, cbParam));
     76        DbgPrintf2(("Param %s val=%x cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], *(uint8_t *)pParam, cbParam));
    7777        break;
    7878    case 2:
    79         DbgPrintf(("Param %s val=%x cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], *(uint16_t *)pParam, cbParam));
     79        DbgPrintf2(("Param %s val=%x cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], *(uint16_t *)pParam, cbParam));
    8080        break;
    8181    case 4:
    8282    default:
    83         DbgPrintf(("Param %s val=%x cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], *(uint32_t *)pParam, cbParam));
     83        DbgPrintf2(("Param %s val=%x cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], *(uint32_t *)pParam, cbParam));
    8484        break;
    8585    }
     
    106106    Assert(pCurrentCmdBlock + cbParam < pCtx->pCmdBufferEnd);
    107107
    108     DbgPrintf(("Mem Param %s cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], cbParam));
     108    DbgPrintf2(("Mem Param %s cbParam=%d\n", pszVBoxOGLCmd[pCmd->enmOp], cbParam));
    109109
    110110#ifdef VBOX_OGL_CMD_STRICT
     
    137137    uint8_t             *pCurrentCmdBlock = (uint8_t *)pCmd + pCmd->cbCmd;
    138138
    139     DbgPrintf(("End %s cbCmd=%d\n", pszVBoxOGLCmd[pCmd->enmOp], pCmd->cbCmd));
     139    DbgPrintf2(("End %s cbCmd=%d\n", pszVBoxOGLCmd[pCmd->enmOp], pCmd->cbCmd));
    140140
    141141    pCtx->pCurrentCmd = pCurrentCmdBlock;
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxOGL.h

    r3339 r3442  
    6969    }
    7070#define DbgPrintf(a)        VBoxDbgLog a
     71
     72#ifdef VBOX_DEBUG_LVL2
     73#define DbgPrintf2(a)       VBoxDbgLog a
     74#else
     75#define DbgPrintf2(a)
     76#endif
     77
    7178#else
    7279#define glLogError(a)       glSetError(a)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette