mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Avoid locking presentation mutex in GetTransformHint
This caused slowdown in Pokemon as it was being called every frame
This commit is contained in:
@ -401,7 +401,11 @@ namespace skyline::gpu {
|
||||
}
|
||||
|
||||
NativeWindowTransform PresentationEngine::GetTransformHint() {
|
||||
std::unique_lock lock{mutex};
|
||||
if (!vkSurface.has_value()) {
|
||||
std::unique_lock lock{mutex};
|
||||
surfaceCondition.wait(lock, [this]() { return vkSurface.has_value(); });
|
||||
}
|
||||
|
||||
return GetAndroidTransform(vkSurfaceCapabilities.currentTransform);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user