drc: rearrange hacks
authornotaz <notasas@gmail.com>
Mon, 29 Nov 2021 21:35:08 +0000 (23:35 +0200)
committernotaz <notasas@gmail.com>
Tue, 30 Nov 2021 00:14:31 +0000 (02:14 +0200)
commit2405813165a8259d501406d91c3d3161972db9ec
tree794817d5a963b361288ebb150cf5064203dac637
parent9c997d193518cfb9f14d001ad18f721a809acfc8
drc: rearrange hacks

Also adds PE2 hack. PE2 probably checks if a frame didn't take
too long to complete by comparing counter 2 to a hardcoded value.
If it did exceed the limit it restarts all the processing, probably
assuming that the GPU was busy that time and retrying on next frame
would work out?

Still it will hang if not enough cycles are available, regardless of how
root counters are handled, and currently won't work on the interpreter
even with root counter hack because of recently added stalls.
PCSX's timing is just too wrong all over the place...
frontend/menu.c
libpcsxcore/database.c
libpcsxcore/new_dynarec/new_dynarec.c
libpcsxcore/new_dynarec/new_dynarec.h