Bug 256935 - palapeli hangs for several seconds when dropping a piece into the puzzle
Summary: palapeli hangs for several seconds when dropping a piece into the puzzle
Status: RESOLVED FIXED
Alias: None
Product: palapeli
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Majewsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 23:02 UTC by Andreas Pakulat
Modified: 2021-03-10 00:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pakulat 2010-11-14 23:02:50 UTC
Version:           unspecified (using Devel) 
OS:                Linux

This is becoming a really annoying behaviour. Everytime I drop a piece into the right position in the puzzle, palapeli hangs for multiple seconds. Apparently the amount of time it hangs increases with the amount of "done" pieces, i.e. its ok to connect 10-12 pieces, but when attaching a single piece to a bigger slice of the puzzle (like 100-150) I have to wait for 5-10 seconds to continue.

As I don't know wether it matters, this is a 1000pcs puzzle at 36%, I've copied the <uuid>.save and <uuid>.puzzle to a safe place in case you'd like to inspect it. This is also by far no slow machine or something like that, but the images are kinda big (as is necessary when one wants to split it into that many pieces).

I'd be glad to help track this problem down as its really keeping me from enjoying puzzles of this size after about 30% are done.

Reproducible: Always

Steps to Reproduce:
Not 100% sure but here's what I did to get the current one to get incredibly slow:

- create a puzzle from a 5600x3600 using jigsaw and 1000 pieces settings
- start puzzling until you've got around 20% and most of those 20% are connected (i.e. a bigger chunk is already done instead of multiple smaller ones)
Comment 1 Stefan Majewsky 2010-11-14 23:06:17 UTC
Does it improve if you disable the graphical effects under "Settings > General > Piece appearance"?
Comment 2 Andreas Pakulat 2010-11-15 00:12:18 UTC
Yes it improves a bit, but even without those effects its still taking several seconds. I've also tried other Qt graphics system backends, but didn't see a difference. If you think it would help I could try creating and providing a callgrind for this.

Also while doing the above I noticed that loading the puzzle after starting palapeli is much much faster when disabling both the shadows and the bevel, but its not faster if either of the two (or both) is enabled.
Comment 3 Justin Zobel 2021-03-09 23:51:07 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 4 Ian Wadham 2021-03-10 00:23:04 UTC
Not a problem now. The original author and I have both made speed improvements to Palapeli in the intervening years.