[dynarmic] Remove last FPT LUT table, removing around 30kb worth of unused functions #3718
No reviewers
Labels
No labels
android
audio
bug
ci
cmake
confirmed
core
desktop
duplicate
enhancement
frontend
fw
git
graphics
loader
nv gpu
ui
vulkan
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
eden-emu/eden!3718
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lizzie/dynarmic-ltu-fpt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lets do the quick math
There was 1 LUT for every fsize() instancing
Now... the number of functions on each lut was (fsize + 1), multiplied by 5 (number of rounding modes)
8 = 9 * 5 = 45
16 = 17 * 5 = 85
32 = 33 * 5 = 165
64 = 65 * 5 = 325
this is just pure insanity - look at what fucking nm reported:
"ah its not bad" - OH MATE ITS JUST THE GUARD VARIABLES - i attached a file with just the functions generated for each case...
now with this PR only 6 * 6 functions are made (still not ideal, but way better), 36 is way better than 1156 FUCKING FUNCTIONS
Signed-off-by: lizzie lizzie@eden-emu.dev
[dynarmic] Remove last FPT LUT table, removing around 40kb worth of unused functionsto [dynarmic] Remove last FPT LUT table, removing around 16kb worth of unused functions[dynarmic] Remove last FPT LUT table, removing around 16kb worth of unused functionsto [dynarmic] Remove last FPT LUT table, removing around 25kb worth of unused functions[dynarmic] Remove last FPT LUT table, removing around 25kb worth of unused functionsto [dynarmic] Remove last FPT LUT table, removing around 30kb worth of unused functionsappears to have no issues on games i tested with booting
Also tested on Bayonneta3, EnderMagnolia, TOTK, MK8D
On gentoo
a92198e9ce4f73a4574b4f73a4574b771b491172