Changeset 6982 for trunk/src/ddraw/OS2SURFACE.CPP
- Timestamp:
- Oct 10, 2001, 4:40:45 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2SURFACE.CPP
r6960 r6982 1 /* $Id: OS2SURFACE.CPP,v 1.3 6 2001-10-07 08:25:30sandervl Exp $ */1 /* $Id: OS2SURFACE.CPP,v 1.37 2001-10-10 14:40:45 sandervl Exp $ */ 2 2 3 3 /* … … 306 306 #define CBM_CREATEDIB 0x02L /* create DIB bitmap */ 307 307 308 //#define PERFTEST 309 #ifdef PERFTEST 310 LARGE_INTEGER liStart; 311 LARGE_INTEGER liEnd; 312 ULONG average = 0; 313 #endif 314 308 315 #ifdef DEBUG 316 309 317 // ****************************************************************************** 310 318 // * internal helper functions from WINE … … 1732 1740 { 1733 1741 1742 #ifdef PERFTEST 1743 WriteLog("Average blitting time: %x clock ticks"); 1744 #endif 1745 1734 1746 if(DDSurfaceDesc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) 1735 1747 { … … 2458 2470 } 2459 2471 dodiveblit: 2472 #ifdef PERFTEST 2473 QueryPerformanceCounter(&liStart); 2474 #endif 2460 2475 if(fChanged || memcmp(&sBlt, &dest->sBlt, sizeof(sBlt)-sizeof(PRECTL)-sizeof(ULONG))) 2461 2476 { … … 2477 2492 return(DD_OK); 2478 2493 } 2494 #ifdef PERFTEST 2495 QueryPerformanceCounter(&liEnd); 2496 if(liEnd.HighPart == liStart.HighPart) { 2497 if(average == 0) { 2498 average = (liEnd.LowPart - liStart.LowPart); 2499 } 2500 else average = (average + (liEnd.LowPart - liStart.LowPart))/2; 2501 } 2502 #endif 2479 2503 return DD_OK; 2480 2504 } … … 2498 2522 LPRECT lpClipRect = (LPRECT)&lpRgnData->Buffer; 2499 2523 2524 #ifdef PERFTEST 2525 QueryPerformanceCounter(&liStart); 2526 #endif 2500 2527 for(i=0;i<lpRgnData->rdh.nCount;i++) 2501 2528 { … … 2518 2545 } 2519 2546 } 2547 #ifdef PERFTEST 2548 if(liEnd.HighPart == liStart.HighPart) { 2549 QueryPerformanceCounter(&liEnd); 2550 if(average == 0) { 2551 average = (liEnd.LowPart - liStart.LowPart); 2552 } 2553 else average = (average + (liEnd.LowPart - liStart.LowPart))/2; 2554 } 2555 #endif 2556 2520 2557 return ret; 2521 2558 } … … 4816 4853 pIRectNew); 4817 4854 4855 #if 0 4818 4856 if(me->diveBufNr == DIVE_BUFFER_SCREEN) 4819 4857 { … … 4830 4868 } 4831 4869 } 4870 #endif 4832 4871 me->fLocked = TRUE; 4833 4872 } … … 5253 5292 5254 5293 5294 #if 0 5255 5295 if(me->diveBufNr == DIVE_BUFFER_SCREEN) 5256 5296 { … … 5267 5307 } 5268 5308 } 5309 #endif 5269 5310 5270 5311 // delete tne DDRectobject of the found rectangle
Note:
See TracChangeset
for help on using the changeset viewer.