From 256e3819dfbe2a6e090ddafa5854a2a40435affe Mon Sep 17 00:00:00 2001 From: Dunedan Date: Sun, 15 Jun 2025 07:43:48 +0200 Subject: [PATCH] Use other composition for multiple graphs "lighten" would result in a disappearing graph when too many graphs overlapped, "exclusion" looks much better in this situation. --- source/tools/profiler2/profiler2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tools/profiler2/profiler2.js b/source/tools/profiler2/profiler2.js index fe74f6f7e9..c124b5ecff 100644 --- a/source/tools/profiler2/profiler2.js +++ b/source/tools/profiler2/profiler2.js @@ -121,7 +121,7 @@ function draw_frequency_graph() nb.textContent = type + " - n=" + time_by_frame.length; legend.appendChild(nb); - context.globalCompositeOperation = "lighter"; + context.globalCompositeOperation = "exclusion"; context.beginPath(); context.strokeStyle = colour; context.lineWidth = 1; @@ -226,7 +226,7 @@ function draw_history_graph() const time_by_frame = series_data[type]; context.beginPath(); - context.globalCompositeOperation = "lighten"; + context.globalCompositeOperation = "exclusion"; context.strokeStyle = colour; context.lineWidth = 0.75;