The first thing i had found out is the svg image i use for GraphicsItem is
too complicate, after i remove all the detail from it, it runs a little
smoothly but thousands of items O.O, i can't even imagine it. Here is the
class of GraphicsItem i used

https://gist.github.com/illunara/5298674

Thanks for reply


On Wed, Apr 3, 2013 at 6:04 AM, Judah Baron <[email protected]> wrote:

> Yeah, that sounds suspicious. What's going on with those 20 items?
>
>
> On Tue, Apr 2, 2013 at 11:07 AM, Justin Israel <[email protected]>wrote:
>
>> 20 items is by no means "a lot". I have had scenes with thousands of
>> items. It sounds like you might be doing something heavy in your paint
>> events.
>> Can you provide some more details about the items you are using? Snippet?
>>  On Apr 3, 2013 1:01 AM, "illunara" <[email protected]> wrote:
>>
>>> Hi everybody
>>>  I'm working with QGraphicsView for a while, and after had finished some
>>> basic stuff, i realized it gets slow down when there are a lot of items
>>> (around 20, and it will freeze).
>>>
>>>  When i set cacheMode in QGraphicsItem to ItemCoordinateCache which will
>>> block the paintEvent, the performance is improve. So i guess that is the
>>> cause. However, i don't know how to solve this yet :(
>>>
>>> Thanks
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected]
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/KO-lFG2GYMY/unsubscribe?hl=en-US
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to