!11838 修复LTPO延迟

Merge pull request !11838 from XUXIAOBO/20240601-3
This commit is contained in:
openharmony_ci 2024-06-04 10:00:04 +00:00 committed by Gitee
commit c537340619
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 13 deletions

View File

@ -546,7 +546,7 @@ void VSyncDistributor::OnDVSyncTrigger(int64_t now, int64_t period, uint32_t ref
ChangeConnsRateLocked();
ScopedBytrace func("pendingRNVInVsync: " + std::to_string(pendingRNVInVsync_) + " DVSyncOn: " +
std::to_string(IsDVsyncOn()));
std::to_string(IsDVsyncOn()) + " isRS:" + std::to_string(isRs_));
if (dvsync_->WaitCond() || pendingRNVInVsync_) {
con_.notify_all();
} else {
@ -776,12 +776,6 @@ VsyncError VSyncDistributor::RequestNextVSync(const sptr<VSyncConnection> &conne
return VSYNC_ERROR_NULLPTR;
}
#if defined(RS_ENABLE_DVSYNC)
if (IsDVsyncOn() && fromWhom == "ltpoForceUpdate") {
return VSYNC_ERROR_OK;
}
#endif
ScopedBytrace func(connection->info_.name_ + "_RequestNextVSync");
std::unique_lock<std::mutex> locker(mutex_);

View File

@ -305,7 +305,7 @@ void RSSubThread::DrawableCache(DrawableV2::RSSurfaceRenderNodeDrawable* nodeDra
RSSubThreadManager::Instance()->NodeTaskNotify(param->GetId());
RSMainThread::Instance()->RequestNextVSync();
RSMainThread::Instance()->RequestNextVSync("subthread");
// mark nodedrawable can release
RSUifirstManager::Instance().AddProcessDoneNode(param->GetId());

View File

@ -516,11 +516,7 @@ void RSMainThread::Init()
RSMainThread::Instance()->SetForceUpdateUniRenderFlag(forceUpdate);
RSMainThread::Instance()->SetIdleTimerExpiredFlag(idleTimerExpired);
RS_TRACE_NAME_FMT("DVSyncIsOn: %d", this->rsVSyncDistributor_->IsDVsyncOn());
if (forceUpdate) {
RSMainThread::Instance()->RequestNextVSync("ltpoForceUpdate");
} else {
RSMainThread::Instance()->RequestNextVSync();
}
RSMainThread::Instance()->RequestNextVSync("ltpoForceUpdate");
});
});
frameRateMgr_->Init(rsVSyncController_, appVSyncController_, vsyncGenerator_);