Skip navigation.
Home
The QNX Community Portal

View topic - how can enhace the refresh of PtRaw, 3x!

how can enhace the refresh of PtRaw, 3x!

Isn't the name clear?

how can enhace the refresh of PtRaw, 3x!

Postby dxwang » Wed Jan 23, 2008 1:11 am

the os is qnx630sp3.
we use PtRaw to draw some data. if there is a dialog on the front of the ptraw and we move it sometimes, then the ptraw will refresh some regions automatically. so it will need some time for it . and some other mouse operation of button will can not respond immediately.
we think if there is some good way to reduce the time of refresh. I have seen the chapter of Raw Drawing and Animation. but I don't know how to do it .

3x
dxwang
Senior Member
 
Posts: 129
Joined: Mon Sep 27, 2004 1:39 pm

RE: how can enhace the refresh of PtRaw, 3x!

Postby qnxloader » Wed Jan 23, 2008 11:00 am

Draw to offscreen context. In PtRaw blit this context to screen.
qnxloader
Senior Member
 
Posts: 206
Joined: Mon Oct 06, 2003 8:29 am

RE: how can enhace the refresh of PtRaw, 3x!

Postby maschoen » Wed Jan 23, 2008 4:58 pm

Is this what the double buffer widget does?
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

RE: how can enhace the refresh of PtRaw, 3x!

Postby mario » Wed Jan 23, 2008 4:59 pm

If the mouse operation does not respond that means you PtRaw draw function takes too much time. It will be faster if you do it in offscreen context mode, but I don't think that will solve your problem.

You may have to rework your draw function.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest