Skip navigation.
Home
The QNX Community Portal

View topic - Flickering PtMeter widget

Flickering PtMeter widget

Isn't the name clear?

Flickering PtMeter widget

Postby darkusas » Sat Aug 22, 2009 5:21 pm

I have annoying problem with PtMeter.

When I am using gma9xx video driver I see annoying Flickering on PtMeter widget. The problem is solved by using svga driver but the CPU usage is horrible.

please check this video, and tell me, does anybody had such problem and maybe solved somehow? http://www.youtube.com/watch?v=qGM3j9xVnlg

system:
QNX 6.4.1 on Intel D945GSEJT(http://www.intel.com/products/desktop/motherboards/D945GSEJT/D945GSEJT-overview.htm)


Any comments are welcome !

Thanks.
darkusas
Active Member
 
Posts: 11
Joined: Tue Jul 28, 2009 6:55 pm

RE: Flickering PtMeter widget

Postby maschoen » Sat Aug 22, 2009 9:55 pm

One thing you might want to look at is the double buffer widget. Also, see if there is a way to have the video card use an interrupt on refresh, and to have the driver make use of this.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Postby darkusas » Sun Aug 23, 2009 6:07 am

But why I can see this ugly flickering only on PtMeter? other widget are OK.
darkusas
Active Member
 
Posts: 11
Joined: Tue Jul 28, 2009 6:55 pm

Postby maschoen » Sun Aug 23, 2009 2:51 pm

How often do you update the PtMeter's position?
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Postby darkusas » Mon Aug 24, 2009 3:53 am

It depends from situation , max 20 times per second.

I just tested with 2 times per second, not so often but still I can see flickering.
Last edited by darkusas on Mon Aug 24, 2009 4:17 am, edited 1 time in total.
darkusas
Active Member
 
Posts: 11
Joined: Tue Jul 28, 2009 6:55 pm

Postby maschoen » Mon Aug 24, 2009 4:12 am

darkusas wrote:It depends from situation , max 20 times per second.


Well you might want to adjust the code so that it doesn't update quite that fast to see if that solves your problem.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Postby darkusas » Mon Aug 24, 2009 4:18 am

I just tested with 2 times per second, not so often but still I can see flickering.
darkusas
Active Member
 
Posts: 11
Joined: Tue Jul 28, 2009 6:55 pm

Postby maschoen » Mon Aug 24, 2009 4:26 am

In that case, it sounds like a problem with the widget itself. You might try putting the widget into a double buffer widget to see if that solve your problem. The alternative is to check into the widget code itself. I'm willing to bet that every time the gauge changes, the entire widget is redrawn. That might be unavoidable.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Postby darkusas » Mon Aug 24, 2009 4:40 am

By using PtOSContainer widget problem has been solved.

Thank You Maschoen.
darkusas
Active Member
 
Posts: 11
Joined: Tue Jul 28, 2009 6:55 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 3 guests