summaryrefslogtreecommitdiff
path: root/src/core/frontend/applets/controller.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-10-13 18:00:25 -0300
committerGravatar ReinUsesLisp2020-10-13 18:00:25 -0300
commitb9a9b83bee124a86501905d0b75def4ccb1cb966 (patch)
tree8e7a42cb87ec56c2fadf3e75a31b1ead0c22514f /src/core/frontend/applets/controller.cpp
parentMerge pull request #3929 from FearlessTobi/ticket-keys (diff)
downloadyuzu-b9a9b83bee124a86501905d0b75def4ccb1cb966.tar.gz
yuzu-b9a9b83bee124a86501905d0b75def4ccb1cb966.tar.xz
yuzu-b9a9b83bee124a86501905d0b75def4ccb1cb966.zip
kernel: Implement host thread register methods without locking
Locks on GetCurrentHostThreadID were causing performance issues according to Visual Studio's profiler. It was consuming twice the time as arm_interface.Run(). The cost was not in the function itself but in the lockinig it required. Reimplement these functions using atomics and static storage instead of an unordered_map. This is a side effect to avoid locking and using linked lists for reads. Replace unordered_map with a linear search.
Diffstat (limited to 'src/core/frontend/applets/controller.cpp')
0 files changed, 0 insertions, 0 deletions