Increase Maximum Vblank Rate and Clocks Scale

Allow x30 times the speed of vblank rate + clocks scale of original PS3.
In theory a 60 fps limit game which scales frame limit perfectly with vblank rate can be played at up to 1800 fps with this change.

And:
* Fixed lv2 sleep with Clocks Scaling
* Make these settings dynamicaly adjustable.
* Avoid code duplication
This commit is contained in:
Eladash 2020-01-29 22:42:41 +02:00 committed by GitHub
parent 1206a5d4b7
commit 92466165f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 11 deletions

View file

@ -502,12 +502,12 @@ namespace rsx
#endif
u64 start_time = get_system_time();
const u64 period_time = 1000000 / g_cfg.video.vblank_rate;
const u64 wait_sleep = period_time - u64{period_time >= host_min_quantum} * host_min_quantum;
// TODO: exit condition
while (!Emu.IsStopped() && !m_rsx_thread_exiting)
{
const u64 period_time = 1000000 / g_cfg.video.vblank_rate;
const u64 wait_sleep = period_time - u64{period_time >= host_min_quantum} * host_min_quantum;
if (get_system_time() - start_time >= period_time)
{
do