ethteck / kh1

WIP Decompilation of Kingdom Hearts (PS2, JP)
40 stars 6 forks source link

xball #47

Closed Yotona closed 1 week ago

Yotona commented 1 month ago

Started work on a small section that deals heavily in vector/matrix math, some functions indicate that at least part of the project will need -ffast-math enabled, but doing so breaks other files, will need some research to find a good solution. Edit: -ffast-math may not have been used, the only optimization it would have introduced that is apparent in the extracted assembly is related to sqrt, and even this is unlikely due to conflicts with extra instructions being generated. Instead, an inline assembly method is introduced that fulfills a matching solution.