Branch: refs/heads/master
  Home:   https://github.com/synfig/synfig
  Commit: 566fd7fa09f780caa7015196dc6c468944503c3b
      
https://github.com/synfig/synfig/commit/566fd7fa09f780caa7015196dc6c468944503c3b
  Author: rodolforg <rodolf...@users.noreply.github.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M synfig-studio/src/gui/docks/dock_info.cpp

  Log Message:
  -----------
  perf: avoid canvas introspection when DockInfo is not shown (#3328)

On every mouse move on CanvasView, it reads what color is
underneath the mouse pointer.

We can avoid calls to `Layer::get_color()` (that can parse all
canvas layers) ans their computation if DockInfo is not mapped.

'signal_map', in GTK words, is 'when the widget is visible
and all its parents up to the toplevel widget are also visible.'

DockInfo is not mapped when another tab/dock is being shown in
its 'block' (DockBook), as it is in default workspace layout.




_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to