Posted: 22 Apr 2015, 07:44
i was wondering something about ::onpaint procedure, maybe someone could have the clues..
: am i right to assume that whatever was done relating callbacks/process ect in a code, the onpaint procedure will/could be trigged 'independently' by usine, kind as a tick, maybe defined in main options?
If that's the case, and let's say the module actually don't really need redraw exept specific specified cases, would that worth having kind of other master main bool swich at top of scope created in the code to prevent un-needed redraws?
kind set to 'false' by default, that would only open and be true when in the code we need a re-draw, then set back to false ?
iam questioning cause if i trace a sdkchar i can see it sometimes enters the scope even if i do nothing special, with no inputs connected neither mouse moves on canvas., like there are 3 or 4 consecutive fast ticks coming in then northing for a while, then back, seems regular but also random. Not that often and definitely not each 5ms as my main refresh setting, but is that normal? or i need to check if i got errors somewere?
not drastic if normal to, just questionning/wondering.. as i draw many stuff^^ maybe that would worth to optimize by adding extra swich...
: am i right to assume that whatever was done relating callbacks/process ect in a code, the onpaint procedure will/could be trigged 'independently' by usine, kind as a tick, maybe defined in main options?
If that's the case, and let's say the module actually don't really need redraw exept specific specified cases, would that worth having kind of other master main bool swich at top of scope created in the code to prevent un-needed redraws?
kind set to 'false' by default, that would only open and be true when in the code we need a re-draw, then set back to false ?
iam questioning cause if i trace a sdkchar i can see it sometimes enters the scope even if i do nothing special, with no inputs connected neither mouse moves on canvas., like there are 3 or 4 consecutive fast ticks coming in then northing for a while, then back, seems regular but also random. Not that often and definitely not each 5ms as my main refresh setting, but is that normal? or i need to check if i got errors somewere?
not drastic if normal to, just questionning/wondering.. as i draw many stuff^^ maybe that would worth to optimize by adding extra swich...