OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 10:59 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 35 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dxwang
Post subject: how can enhace the refresh of PtRaw, 3x!  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
qnxloader
Post subject: RE: how can enhace the refresh of PtRaw, 3x!  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: how can enhace the refresh of PtRaw, 3x!  PostPosted: Jan 23, 2008 - 04:58 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1027

Is this what the double buffer widget does?
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
mario
Post subject: RE: how can enhace the refresh of PtRaw, 3x!  PostPosted: 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.