rsx: Implement custom fractional frame limit

This commit is contained in:
Eladash 2022-10-23 06:43:01 +03:00 committed by Megamouse
parent 0113224cb6
commit 18e30c7e44
2 changed files with 7 additions and 0 deletions

View file

@ -3399,6 +3399,12 @@ namespace rsx
break;
}
if (double limit2 = g_cfg.video.second_frame_limit; limit2 >= 0.1 && (limit2 < limit || !limit))
{
// Apply a second limit
limit = limit2;
}
if (limit)
{
const u64 needed_us = static_cast<u64>(1000000 / limit);