VirtualBox

Changeset 32904 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 5, 2010 10:34:28 AM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: better shgsmi channel perf test

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r32889 r32904  
    53815381#ifdef VBOXWDDM_TEST_UHGSMI
    53825382        {
    5383             Assert(0);
    5384             static uint32_t cCals = 10000;
     5383//            Assert(0);
     5384            static uint32_t cCals = 100000;
    53855385            static uint32_t cbData = 8 * 1024 * 1024;
    53865386            uint64_t TimeMs;
    53875387            int rc = vboxUhgsmiTst(&pDevice->Uhgsmi.Base, cbData, cCals, &TimeMs);
    53885388            uint32_t cCPS = (((uint64_t)cCals) * 1000ULL)/TimeMs;
    5389             Assert(0);
    5390             vboxVDbgDoMpPrintF(pDevice, "Time : %I64u ms, calls: %d, cps: %d\n", TimeMs, cCals, cCPS);
     5389//            Assert(0);
     5390//            vboxVDbgDoMpPrintF(pDevice, "Time : %I64u ms, calls: %d, cps: %d\n", TimeMs, cCals, cCPS);
    53915391        }
    53925392#endif
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r32877 r32904  
    292292            case VBOXVDMACMD_TYPE_CHROMIUM_CMD:
    293293            {
     294#ifdef VBOXWDDM_TEST_UHGSMI
     295                static int count = 0;
     296                static uint64_t start, end;
     297                if (count==0)
     298                {
     299                    start = RTTimeNanoTS();
     300                }
     301                ++count;
     302                if (count==100000)
     303                {
     304                    end = RTTimeNanoTS();
     305                    float ems = (end-start)/1000000.f;
     306                    LogRel(("100000 calls took %i ms, %i cps\n", (int)ems, (int)(100000.f*1000.f/ems) ));
     307                }
     308#endif
    294309                /* todo: post the buffer to chromium */
    295310                return VINF_SUCCESS;
  • trunk/src/VBox/Devices/Makefile.kmk

    r32877 r32904  
    353353        Graphics/DevVGA_VDMA.cpp
    354354endif
     355ifdef VBOXWDDM_TEST_UHGSMI
     356 DevicesR3_DEFS   += VBOXWDDM_TEST_UHGSMI
     357endif
    355358ifdef VBOXWDDM_WITH_VBVA
    356359 DevicesR3_DEFS        += VBOXWDDM_WITH_VBVA
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