mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Fix KtSettings JNI usage
* Use a global ref for NativeSettings JNI instance * Always use the JNI env from the JNI call to ensure it's safe to use in the current thread
This commit is contained in:
@ -33,7 +33,7 @@ namespace skyline::gpu {
|
||||
auto desc{presentationTrack.Serialize()};
|
||||
desc.set_name("Presentation");
|
||||
perfetto::TrackEvent::SetTrackDescriptor(presentationTrack, desc);
|
||||
state.settings->disableFrameThrottling.AddCallback(std::bind(&PresentationEngine::OnDisableFrameThrottlingChanged, this, std::placeholders::_1));
|
||||
state.settings->disableFrameThrottling.AddCallback([this](auto && value) { OnDisableFrameThrottlingChanged(value); });
|
||||
}
|
||||
|
||||
PresentationEngine::~PresentationEngine() {
|
||||
|
Reference in New Issue
Block a user