Small pattern width (relative to pattern source size) causes long freezes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Krzysztof Kosinski |
Bug Description
When a pattern width of a pattern is less than the width of the object, duplicate object elements can occupy the same space. When this width is very small, this duplication can cause Inkscape / Inkview to freeze for long periods of time (the attached example uses a width of 1px, which freezes inkview for about 30s).
This is related to bug 167416 in terms of why it is caused (i.e. processor trying to make too many copies of an object). A quick fix would be similar in nature -- if a pattern width is less than 10% (say) of the object bounding box, don't display anything. My idea of a correct fix would be to work out what the image might look like, instead stamping multiple copies of an object.
Possibly related bugs that may be touched by a fix to this: bug 165780, bug 167503.
Found on trunk Inkscape from bzr (revno: 9816).
tags: |
added: performance renderer removed: freeze |
Changed in inkscape: | |
assignee: | nobody → Krzysztof Kosinski (tweenk) |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Based on bug 167416, code changes needed to fix this will probably be in src/sp-pattern.cpp.