diff --git a/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h b/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h index 6b11155fa5..9fc7596687 100644 --- a/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h +++ b/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h @@ -22,7 +22,7 @@ class DisplayListGLComplexityCalculator bool ShouldBeCached(unsigned int complexity_score) override { // Set cache threshold at 1ms - return false; + return complexity_score > 200000u; } void SetComplexityCeiling(unsigned int ceiling) override { diff --git a/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h b/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h index 0a4310edb2..aa63863fa4 100644 --- a/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h +++ b/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h @@ -22,7 +22,7 @@ class DisplayListMetalComplexityCalculator bool ShouldBeCached(unsigned int complexity_score) override { // Set cache threshold at 1ms - return false; + return complexity_score > 200000u; } void SetComplexityCeiling(unsigned int ceiling) override {