VirtualBox

Changeset 32904 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Oct 5, 2010 10:34:28 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66387
Message:

wddm/3d: better shgsmi channel perf test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
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