diff --git a/render-wasm/src/render/gpu_state.rs b/render-wasm/src/render/gpu_state.rs index 0425a92f26..8bf917fa8f 100644 --- a/render-wasm/src/render/gpu_state.rs +++ b/render-wasm/src/render/gpu_state.rs @@ -22,7 +22,10 @@ impl GpuState { // We tweak some options to enhance performance. let mut context_options = ContextOptions::default(); - // context_options.reduce_ops_task_splitting = Enable::Yes; + // Fewer RT switches / smaller ops-task graphs across Fills, Strokes, + // shadows, and Current. Helps flush_and_submit when many shapes share + // intermediate surfaces. + context_options.reduce_ops_task_splitting = Enable::Yes; context_options.skip_gl_error_checks = Enable::Yes; // context_options.runtime_program_cache_size = 1024; // context_options.allow_multiple_glyph_cache_textures = Enable::Yes;