mirror of
https://github.com/esuo1198/TaikoArcadeLoader.git
synced 2026-10-09 06:59:50 +03:00
Log Optimization & add Banner
layeredfs add mod_dir option allow uses different folder add simple input option to allow input direct apply to game
This commit is contained in:
@@ -31,9 +31,10 @@ namespace patches::Timer {
|
||||
bool setHighResolutionTimer = currentResolution > maximumResolution;
|
||||
|
||||
if (setHighResolutionTimer) {
|
||||
NTSTATUS status = NtSetTimerResolution(maximumResolution, TRUE, ¤tResolution);
|
||||
ULONG targetResolution = currentResolution;
|
||||
NTSTATUS status = NtSetTimerResolution(maximumResolution, TRUE, &targetResolution);
|
||||
if (status == 0) {
|
||||
LogMessage (LogLevel::INFO, "Timer resolution: {}ms -> {}ms", currentResolution / 10000.0, maximumResolution / 10000.0);
|
||||
LogMessage (LogLevel::INFO, "Using HiRes Timer: {}ms -> {}ms", currentResolution / 10000.0, targetResolution / 10000.0);
|
||||
} else {
|
||||
LogMessage (LogLevel::WARN, "Failed to change Timer resolution, status={}", status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user