Feature #1031

efficiency of FlexiNoteLayer?

Added by Matthias Mauch almost 10 years ago.

Status:NewStart date:2014-07-15
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I have changed the FlexiNoteLayer so that notes are numbered.

In order to do that, every time a note is highlighted I cycle through all notes and count up to the last note displayed, essentially:
https://code.soundsoftware.ac.uk/projects/svgui/repository/entry/layer/FlexiNoteLayer.cpp#L804

I have a feeling that that's a bit inefficient. I noticed that, whether I do this or not, just vigorously moving the mouse over the visible FlexiNoteLayer can get me around 80% CPU load.

Doesn't otherwise seem to affect anything. Should we worry about that?

Also available in: Atom PDF