-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental code for shared memory reservations #8008
Conversation
rpcs3/Emu/Memory/vm.cpp
Outdated
{ | ||
static const auto test_addr = [](const u32 target, const u32 addr, const u32 end) | ||
if (addr < 0x10000 + g_locations[vm::main]->size || addr >= 0xc0000000) |
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.
stack memory allows reservations.
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.
Well, I didn't assume otherwise. I only assumed it didn't allow oddities (shared memory).
Try with tsx disabled. |
b85c88b
to
908b0e4
Compare
This comment has been minimized.
This comment has been minimized.
You need to download artifact from https://github.com/RPCS3/rpcs3/pull/8008/checks?check_run_id=582584162 - go to azure pipelines. |
Fixed a bug, need retest. |
Tested with Persona 5 and Nier on my i7 7700HQ and to my absolute surprise, I saw no perf degradation. LGTM. |
tested on resistance 1/3 no difference |
Heavenly Sword seems to have the same performance as well |
Tested it as well on my Intel 4770HQ laptop with Ni no kuni. The FPS is ranging from 15-26 on this build and same with master build. |
03664ab
to
8b17fd2
Compare
Enables trivial synchronization between shared mem. Reduces memory usage, but potentially degrades performance. Rename an overload of vm::passive_lock to vm::range_lock.
Optimization.
If there is no noticeable degradation, I may consider using it. Currently it's very unclear.
Both TSX and non-TSX CPUs are welcomed to test.