-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use aligned loads in non-inlined funcs.
I'm wanting things to stay in registers, but that's not realistic for arguments. Force inline the others. May help #5699.
- Loading branch information
1 parent
a26e6ce
commit 56b83af
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56b83af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a very, very minor performance regression in certain games (Tekken 6, Monhun series) traced back to this commit. I guess the performance gains in 4772852 were nullfied to an extent.
I guess it's unavoidable to fix the crashes in #5699 (which I didn't experience on my Windows 64bit system).
56b83af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this will naturally hurt performance. That's why I was hoping for it to stick into a register rather than having to use a load.
-[Unknown]
56b83af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I wonder if the crash culprit wasn't actually your _store_ps to a local float, which could have been aligned however the compiler felt like. But should use loads properly anyway I guess.
56b83af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unknownbrackets
Hrmm... apparently I can reproduce the crash described in #5699 with Tekken DR if Hardware Transform is off, but only on the Windows x64 debug builds.
in the release builds it still doesn't happen. I discovered this when trying to acquire the debug stacktrace as per your request here (#5782 (comment)), and it crashed the moment i disabled HW Transform instead of the usual point (after the 3rd stage) during Armor King's Story Mode. A stack trace of that particular crash pointed to the Math3D.cpp file as the culprit, and a git reset --hard fixed it.
I was using a customized build with this particular commit reverted for better performance. It seems like this commit may be needed after all even for Windows if one were to use SW Transform with a Debug Build for a game that needs HW Transform off.