lightrec: Run dynarec until next interrupt
authorPaul Cercueil <paul@crapouillou.net>
Sat, 29 Jan 2022 11:35:07 +0000 (11:35 +0000)
committerPaul Cercueil <paul@crapouillou.net>
Sat, 29 Jan 2022 20:12:59 +0000 (20:12 +0000)
commit2bf88032209c32c6a2a920905cced1ab0f69d5a1
treee35641138f528536770aeda67d8e143f7086272e
parentf4f9f2a415665fd9cbb7ac404c3d9d34397d3023
lightrec: Run dynarec until next interrupt

Instead of running the dynarec once per block, which creates a huge
overhead as entering/exiting the dynarec isn't very fast, run only the
number of cycles until the next interrupt.

This boosts performance by a huge margin. On my PC, running the intro
video in MediEvil goes from using 34-36% CPU usage down to 16-17%.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Co-developed-by: notaz <notasas@gmail.com>
Signed-off-by: notaz <notasas@gmail.com>
libpcsxcore/lightrec/plugin.c