vbox的更動 60589 路徑 trunk/src/VBox/Additions
- 時間撮記:
- 2016-4-20 上午10:06:40 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器