Moving an image in musescore is very slow

• Oct 14, 2014 - 20:16
Type
Graphical (UI)
Severity
S4 - Minor
Status
closed
Project

I compiled musecore from master branch on fedora 20 64 bits (commit d175629133ef18a6cfacdefb3042e24406381a30)

I dragged and dropped an image onto a score.
When I tried to moved it, the image is being moved very slowly (one update every 10 seconds).


Comments

Status (old) active duplicate

If you try any other editing on this score, you'll see it's *all* slow. That's because it is a relatively large score (not all *that* big really, but full of notes) and it has parts generated already. Any edit - moving an image, adding a note, whatever - takes a while on a score like this because we need to relayout the entire score and all parts on every edit. See #23546: Score editing extremely slow.

It looks worse than it is right now because we are mostly creating debug builds, and they are perhaps twice as slow as release builds will be. Still, I am very aware that with linked parts, editing - which was already slow with large scores - is going to seem slower than before. At one one point I had prototyped an optimization where we didn't re-draw linked scores until necessary. That cuts edit times in half, and this plus not building debug versions will make a big difference. But I need to finish getting that working, and even then I'm not sure my changes would be accepted. I've been thinking about this the past week or so, just haven't gotten around to looking at it.