Changeset 100003 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- May 30, 2023 6:18:41 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp
r100001 r100003 1055 1055 uint64_t cNanoSecsVTimerToExpire = ASMMultU64ByU32DivByU32(cTicksVTimerToExpire, RT_NS_1SEC, (uint32_t)pVM->nem.s.u64CntFrqHz); 1056 1056 1057 /* Our halt method doesn't work with sub millisecond granularity at the moment causing a huge slowdown. */ 1058 if (cNanoSecsVTimerToExpire < 20 * RT_NS_1MS) 1057 /* 1058 * Our halt method doesn't work with sub millisecond granularity at the moment causing a huge slowdown 1059 * + scheduling overhead which would increase the wakeup latency. 1060 * So only halt when the threshold is exceeded (needs more experimentation but 5ms turned out to be a good compromise 1061 * between CPU load when the guest is idle and performance). 1062 */ 1063 if (cNanoSecsVTimerToExpire < 5 * RT_NS_1MS) 1059 1064 return VINF_SUCCESS; 1060 1065
Note:
See TracChangeset
for help on using the changeset viewer.