VirtualBox

Ignore:
Timestamp:
Mar 14, 2019 4:47:54 PM (6 years ago)
Author:
vboxsync
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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. */
Note: See TracChangeset for help on using the changeset viewer.

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