[Uml-devel] KDE/kdesdk/umbrello/umbrello

Ralf Habacker ralf.habacker at googlemail.com
Sat Sep 29 03:48:06 UTC 2012


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 for every little mouse move.
Checked, this is not the reason. The reason is that drawing ellipses and 
points is very slow for lower zoom levels.


Regards
Ralf





More information about the umbrello-devel mailing list