From 4cacc83ba5a6b89d9666f2753819494967655955 Mon Sep 17 00:00:00 2001 From: lifujun <814084764@qq.com> Date: Mon, 10 Feb 2020 10:37:23 +0800 Subject: [PATCH] fix(vsync): do not use android vsync because of compatibility issue --- framework/render/video/vsync/VSyncFactory.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/framework/render/video/vsync/VSyncFactory.cpp b/framework/render/video/vsync/VSyncFactory.cpp index 56ecc8279..227ef199d 100644 --- a/framework/render/video/vsync/VSyncFactory.cpp +++ b/framework/render/video/vsync/VSyncFactory.cpp @@ -15,13 +15,14 @@ std::unique_ptr VSyncFactory::create(IVSync::Listener &listener, float HZ) { -#if defined(ANDROID) - std::string version = get_android_property("ro.build.version.sdk"); - - if (atoi(version.c_str()) >= 16) - return std::unique_ptr(new AndroidVSync(listener)); - -#endif + //TODO use android vsync: compatibility issue +//#if defined(ANDROID) +// std::string version = get_android_property("ro.build.version.sdk"); +// +// if (atoi(version.c_str()) >= 16) +// return std::unique_ptr(new AndroidVSync(listener)); +// +//#endif return std::unique_ptr(new timedVSync(listener, HZ)); // return std::unique_ptr(new CADisplayLinkVSync(listener)); }