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 <uzair.jaleel@samsung.com>
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;