From 15ad83e72a67017ab65109823c312efe670712ab Mon Sep 17 00:00:00 2001 From: chengshichang Date: Tue, 11 Feb 2025 19:32:04 +0800 Subject: [PATCH] Signed-off-by: csc --- shell/common/animator.cc | 2 +- shell/platform/ohos/napi/platform_view_ohos_napi.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/common/animator.cc b/shell/common/animator.cc index b26f1e3458..ece4c9834a 100644 --- a/shell/common/animator.cc +++ b/shell/common/animator.cc @@ -19,7 +19,7 @@ namespace { // for further discussion on why this is necessary. constexpr fml::TimeDelta kNotifyIdleTaskWaitTime = fml::TimeDelta::FromMilliseconds(51); -constexpr uint32_t DVSYNC_BUFFER_COUNT = 4; +constexpr uint32_t DVSYNC_BUFFER_COUNT = 2; } // namespace diff --git a/shell/platform/ohos/napi/platform_view_ohos_napi.cpp b/shell/platform/ohos/napi/platform_view_ohos_napi.cpp index 085f68daf0..5cc20d2d31 100644 --- a/shell/platform/ohos/napi/platform_view_ohos_napi.cpp +++ b/shell/platform/ohos/napi/platform_view_ohos_napi.cpp @@ -2330,10 +2330,8 @@ napi_value PlatformViewOHOSNapi::nativeSetDVsyncSwitch(napi_env env, napi_callba if (isEnable) { LOGD("EnableDVsync"); - vsync_waiter_ohos->EnableDVsync(); } else { LOGD("DisableDVsync"); - vsync_waiter_ohos->DisableDVsync(); } napi_create_int32(env, 0, &result); -- Gitee