Offset get_timebased_time at game boot (#10744)

- Avoids game bugs in the case where games convert the value read from the clock to a float before performing delta time calculations
This commit is contained in:
Whatcookie 2021-08-23 08:06:02 -04:00 committed by GitHub
parent 92749f011e
commit d0451932bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View file

@ -642,6 +642,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
}
}
initalize_timebased_time();
// Set RTM usage
g_use_rtm = utils::has_rtm() && ((utils::has_mpx() && g_cfg.core.enable_TSX == tsx_usage::enabled) || g_cfg.core.enable_TSX == tsx_usage::forced);