Changeset 60589 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Apr 20, 2016 10:06:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r60588 r60589 1969 1969 { 1970 1970 VSyncTime.QuadPart = VSyncTime.QuadPart - DevVSyncTime.QuadPart; 1971 /* Check whether we are in VBlank state or actively drawing a scan line 1971 /* 1972 * Check whether we are in VBlank state or actively drawing a scan line 1972 1973 * 10% of the 60Hz are dedicated to VBlank. 1974 * 1975 * Time intervals are in 100ns steps. 1973 1976 */ 1974 1977 LARGE_INTEGER VSyncPeriod; 1975 1978 VSyncPeriod.QuadPart = VSyncTime.QuadPart % 166666LL; /* ASSUMES 60Hz*/ 1976 if (VSyncPeriod.QuadPart > 150000LL)1979 if (VSyncPeriod.QuadPart >= 150000LL) 1977 1980 bVBlank = TRUE; 1978 1981 else 1979 {1980 /* time is in 100ns, */1981 1982 curScanLine = (uint32_t)((pTarget->Size.cy * VSyncPeriod.QuadPart) / 150000LL); 1982 if (pDevExt->bVSyncTimerEnabled)1983 {1984 if (curScanLine > pTarget->Size.cy)1985 curScanLine = pTarget->Size.cy;1986 }1987 else1988 curScanLine %= pTarget->Size.cy;1989 }1990 1983 } 1991 1984
Note:
See TracChangeset
for help on using the changeset viewer.