mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
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:
parent
1206a5d4b7
commit
92466165f6
3 changed files with 8 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue