It is currently Thu Nov 21, 2019 1:06 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: On/Off Canvas Redraw
PostPosted: Mon Jun 10, 2019 3:00 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Dec 10, 2010 6:31 pm
Posts: 142
Hi all,
Does anyone have the alternative to on/off Canvas redrawing?
I use WM_SETREDRAW and this works excellent but my problem is that when this message is used in an event like #PB_EventType_MouseMove, in this case the CPU usage is greatly increased and this is not desirable.Does anyone have the alternative to do this without increasing CPU usage?

Thanks.

_________________
Sorry for my bad English.

Amitris


Top
 Profile  
Reply with quote  
 Post subject: Re: On/Off Canvas Redraw
PostPosted: Mon Jun 10, 2019 3:55 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 568
U could use a timer.


Top
 Profile  
Reply with quote  
 Post subject: Re: On/Off Canvas Redraw
PostPosted: Mon Jun 10, 2019 4:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Dec 10, 2010 6:31 pm
Posts: 142
Mijikai wrote:
U could use a timer.

Thanks, this worked.
The trick was familiar but I had forgotten it. :D

_________________
Sorry for my bad English.

Amitris


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye