[Uml-devel] KDE/kdesdk/umbrello/umbrello
Andi Fischer
andi.fischer at hispeed.ch
Tue Sep 25 21:06:04 UTC 2012
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
>
> 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.
Regards,
Andi
More information about the umbrello-devel
mailing list