From 82bfd555817732363b16e3c06d702fe9d7b89430 Mon Sep 17 00:00:00 2001 From: "suyambu.rm" Date: Fri, 15 Oct 2021 17:48:42 +0800 Subject: [PATCH] [M108 Migration][WebGL] Disable |CommandBufferHelper| auto flushing. If |automatic_flushes| is true, buffer of |CommandBufferHelper| is flushed automatically and it causes sync message calls. Due to this main thread is blocked and performance degradation is observed. +--------------------+--------+--------+ | KPI | Before | After | +--------------------+--------+--------+ | 3D/Aquarium | 35~60 | ~60 | +--------------------+--------+--------+ | 3D/100 Objects | 35~60 | ~60 | +--------------------+--------+--------+ (Target : TV) Reference: https://review.tizen.org/gerrit/265363 Change-Id: If287b3b4d12e29c159a70361d251b871377c6818 Signed-off-by: uzair --- content/renderer/renderer_blink_platform_impl.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc index 4cedfbf..b5797d5 100644 --- a/content/renderer/renderer_blink_platform_impl.cc +++ b/content/renderer/renderer_blink_platform_impl.cc @@ -750,7 +750,14 @@ RendererBlinkPlatformImpl::CreateOffscreenGraphicsContext3DProvider( attributes.context_type = ToGpuContextType(web_attributes.context_type); +#if BUILDFLAG(IS_TIZEN) + // If |automatic_flushes| is true, buffer of |CommandBufferHelper| is flushed + // automatically and it causes sync message calls. Due to this main thread is + // blocked and performance degradation is observed. + constexpr bool automatic_flushes = false; +#else constexpr bool automatic_flushes = true; +#endif constexpr bool support_locking = false; bool use_grcontext = !attributes.enable_oop_rasterization && web_attributes.support_grcontext; -- 2.7.4