[Base] Make --win32_high_freq=false actually work.

This commit is contained in:
gibbed 2018-12-15 22:56:36 -06:00
parent a90e3c7962
commit 85b714f2af
1 changed files with 5 additions and 5 deletions

View File

@ -85,11 +85,6 @@ static void RequestHighPerformance() {
int Main() {
auto entry_info = xe::GetEntryInfo();
// Request high performance timing.
if (FLAGS_win32_high_freq) {
RequestHighPerformance();
}
// Convert command line to an argv-like format so we can share code/use
// gflags.
auto command_line = GetCommandLineW();
@ -136,6 +131,11 @@ int Main() {
XELOGI("Build: %s / %s on %s", XE_BUILD_BRANCH, XE_BUILD_COMMIT,
XE_BUILD_DATE);
// Request high performance timing.
if (FLAGS_win32_high_freq) {
RequestHighPerformance();
}
// Call app-provided entry point.
int result = entry_info.entry_point(args);