| Author |
Message |
|
|
Post subject: how can enhace the refresh of PtRaw, 3x!
Posted: Jan 23, 2008 - 01:11 AM
|
|
Senior Member
Joined: Sep 27, 2004
Posts: 129
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: how can enhace the refresh of PtRaw, 3x!
Posted: Jan 23, 2008 - 11:00 AM
|
|
Senior Member
Joined: Oct 06, 2003
Posts: 147
|
|
| Draw to offscreen context. In PtRaw blit this context to screen. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: how can enhace the refresh of PtRaw, 3x!
Posted: Jan 23, 2008 - 04:58 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 1027
|
|
| Is this what the double buffer widget does? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: how can enhace the refresh of PtRaw, 3x!
Posted: Jan 23, 2008 - 04:59 PM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2753
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group Credits |
|
|