[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at googlemail.com
Wed Oct 17 18:03:01 UTC 2012
Am 29.09.2012 05:48, schrieb Ralf Habacker:
> Am 25.09.2012 23:06, schrieb Andi Fischer:
>> Am 26.09.2012 19:22, schrieb Ralf Habacker:
>>> Am 26.09.2012 19:15, schrieb Ralf Habacker:
>>>> Am 24.09.2012 22:39, schrieb Ralf Habacker:
>>>>> SVN commit 1317628 by habacker:
>>>>>
>>>>> Resized grid to scene size
>>>>>
>>>>> -LayoutGrid::LayoutGrid(QGraphicsItem *parent, QGraphicsScene *scene)
>>>>> +LayoutGrid::LayoutGrid(QGraphicsItem *parent, UMLScene *scene)
>>>>> : QGraphicsItem(parent, scene),
>>>>> m_gridSpacingX(25),
>>>>> m_gridSpacingY(25)
>>>>> - m_gridRect(QRect(0, 0, 1000, 1000)),
>>>>> + m_gridRect(scene->sceneRect().toRect()),
>>>> Hi Andi,
>>>>
>>>> are you also encountering huge display delays on position slider
>>>> changes with visible grid ?
>>>> Default scene size is 5000x5000 which means that there has to be
>>>> drawed 25.000.000 ellipses. Using 1000x1000 for the grid size
>>>> (which means that there are 1.000.000 ellipses to draw) reduces the
>>> update required because of a calculation error
>>> 5000x5000 = 25.000.000 units
>>> 25.000.000 units/25(default grid spacing) = 1.000.000 dots g
>>>
>>> 1000x1000 = 1.000.000 units
>>> 1.000.000 units/25(default grid spacing) = 40.000 dots
>>>
>>> Ralf
>> Hi Ralf,
>> Maybe the delay is because of the many debug outputs "Check if
>> scenePos works like view->inverseWorldMatrix().map()".
>> One line is written
> Checked, this is not the reason. The reason is that drawing ellipses
> and points is very slow for lower zoom levels.
>
Have a few numbers when drawing background at the lowest zoom level
lines <150ms
ellipses and points > 20000 ms
Regards
Ralf
More information about the umbrello-devel
mailing list