Hi Philippe,
Philippe wrote:
> My application in 4.6 rc1 is less responsive than in 4.6 beta1 and earlier
> versions.
> The difference is sensible. What I mean by "less responsive" is that the
> paint events don't come as fast as before.
> The painting code itself is fast as before (benchmarked).
> This is only under Windows. On OSX I note no difference between beta1 and rc1.
How are your paint events driven, for example, are they animations driven by
timers? Or some other way?
> I remark this problem like this: I use the mouse to edit a large graphics and
> some QWidget::update() calls are often performed.
> Though the paint() is benchmarked to be as fast in rc1 than in beta1, the
> screen updates are roughly twice slower.
> The resulting feeling is that the graphics are slower.
>
> I have measured how often the paint() is called in rc1 versus beta1 (while
> doing my mouse editing described above).
> In rc1 in general, the output is like this:
[snip]
>
> The figures I get for beta1 are more regular than in rc1. It's often the
> same. In rc1, I wrote "25 ms" above but it's rather 25 then +-20 then +-30
> etc... not as regular.
>
> If you count, you see that paint() is called about twice less. Hence the
> clear feeling of a slower appication.
>
> I remember the note you issued with rc1: "We have redesigned the event
> processing quite extensively to improve the reliability of timers."
> And I am afraid your fix has made the situation worse for me.
Volker's comment does seem a bit scary, but overall the changes made to the
event processing on Win32 weren't that large. However, the few changes we
did could be the cause of what you are seeing.
> Any hint about what was done or how I could find the same
> "responsiveness" as before?
If you look in src/corelib/kernel/qeventdispatcher_win.cpp, in the
qt_internal_proc() function, you should see this on line 489:
> if (GetQueueStatus(QS_INPUT | QS_RAWINPUT | QS_TIMER) != 0) {
Try changing this to:
> if (false && GetQueueStatus(QS_INPUT | QS_RAWINPUT | QS_TIMER) != 0) {
And let me know if this changes the way your app feels?
--
Bradley T. Hughes (Nokia-D-Qt/Oslo), bradley.hughes at nokia.com
Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback