VirtualBox

忽略:
時間撮記:
2019-3-14 下午04:47:54 (6 年 以前)
作者:
vboxsync
訊息:

BVGA,Display,FE/Qt: Don't flood the release log with screen updates message (Debian testing guest), changing the LogRel statements to LogRel2. Display will LogRel actual screen size, position, flag changes (but not VRAM address). Besides being extremely noisy it also slows down guest graphics as each release log message is flushed to the disk. PS. UI folks, we don't break log messages as this reduces the grep-ability.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r77451 r77703  
    919919                                   int32_t xOrigin, int32_t yOrigin, bool fVGAResize)
    920920{
    921     LogRel(("Display::handleDisplayResize: uScreenId=%d pvVRAM=%p w=%d h=%d bpp=%d cbLine=0x%X flags=0x%X\n", uScreenId,
    922             pvVRAM, w, h, bpp, cbLine, flags));
     921    LogRel2(("Display::i_handleDisplayResize: uScreenId=%d pvVRAM=%p w=%d h=%d bpp=%d cbLine=0x%X flags=0x%X\n", uScreenId,
     922             pvVRAM, w, h, bpp, cbLine, flags));
    923923
    924924    /* Caller must not hold the object lock. */
     
    957957
    958958    if (uScreenId >= mcMonitors)
     959    {
     960        LogRel(("Display::i_handleDisplayResize: mcMonitors=%u < uScreenId=%u (pvVRAM=%p w=%u h=%u bpp=%d cbLine=0x%X flags=0x%X)\n",
     961                mcMonitors, uScreenId, pvVRAM, w, h, bpp, cbLine, flags));
    959962        return VINF_SUCCESS;
     963    }
    960964
    961965    DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId];
     
    993997        h = pFBInfo->h;
    994998    }
     999
     1000    /* Log changes. */
     1001    if (   pFBInfo->w != w
     1002        || pFBInfo->h != h
     1003        || pFBInfo->u32LineSize != cbLine
     1004        /*|| pFBInfo->pu8FramebufferVRAM != (uint8_t *)pvVRAM - too noisy */
     1005        || (   !fVGAResize
     1006            && (   pFBInfo->xOrigin != xOrigin
     1007                || pFBInfo->yOrigin != yOrigin
     1008                || pFBInfo->flags != flags)))
     1009        LogRel(("Display::i_handleDisplayResize: uScreenId=%d pvVRAM=%p w=%d h=%d bpp=%d cbLine=0x%X flags=0x%X origin=%d,%d\n",
     1010                uScreenId, pvVRAM, w, h, bpp, cbLine, flags, xOrigin, yOrigin));
    9951011
    9961012    /* Update the video mode information. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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