VU: Run sync ahead on small blocks & Rework VU Kickstart #5572
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
Attempt to run the VU (VU0 mainly) ahead if it's only running a small block, to try and reduce overhead.
VU Kickstart is now always on and is replaced with a VU Sync option as less games need the sync than the run ahead.
Rationale behind Changes
Running blocks of like 3 cycles is very inefficient when you factor in entering and exiting a recompiler, so this makes sure at least a more reasonable amount of cycles is run.
Suggested Testing Steps
test games, compare to master.
Some preliminary numbers:
Tekken Tag: 80-82 to 82-84
Ratchet & Clank: 102-105 to 110-113
Mike Tyson Heavyweight Boxing: 100 to 102
Ratchet & Clank 3: 75 to 82
Jak 3: 118 to 120
Mixed with #5571 (which has now been rebased in) Ratchet & Clank has gone from 105fps to 122fps at the beginning of the first level, a nice little boost, so these two PR's bring a combined boost of somewhere between 10-20% in a bunch of games.
NOTE: This will NOT affect all games, you have to be EE thread limited and the game has to be VU0 heavy (which isn't a great deal) for it to have much effect, so in most scenarios you probably won't even notice a difference.