]]>
2015-04-22T17:43:57+02:002015-04-22T17:43:57+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32445#p32445onPaint procedure is driven at usine level, in the sdk we just can tell to usine we want a repaint with sdkRepaintPanel Usine call onPaint for it own need too. Usine make internal optimization of messages and some repaint can be amalgamated into one onPaint call.
You have to provide all the content of the canvas in the onPaint, there is no concept of buffered image or repaint just this.
you can implement your own image buffer system but you'll have to think about multi-plateform and surely need some external dependencies(library) to manipulate image.
Statistics: Posted by martignasse — 22 Apr 2015, 17:43
]]>2015-04-22T10:35:11+02:002015-04-22T10:35:11+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32434#p32434Statistics: Posted by ceasless — 22 Apr 2015, 10:35
]]>2015-04-22T07:44:31+02:002015-04-22T07:44:31+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32428#p32428 : 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...
]]>BrainModularBrainModular Users Forum2015-04-22T19:16:08+02:00https://www.brainmodular.com/forums/app.php/feed/topic/48752015-04-22T19:16:08+02:002015-04-22T19:16:08+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32453#p32453Statistics: Posted by 23fx23 — 22 Apr 2015, 19:16
]]>2015-04-22T17:43:57+02:002015-04-22T17:43:57+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32445#p32445onPaint procedure is driven at usine level, in the sdk we just can tell to usine we want a repaint with sdkRepaintPanel Usine call onPaint for it own need too. Usine make internal optimization of messages and some repaint can be amalgamated into one onPaint call.
You have to provide all the content of the canvas in the onPaint, there is no concept of buffered image or repaint just this.
you can implement your own image buffer system but you'll have to think about multi-plateform and surely need some external dependencies(library) to manipulate image.
Statistics: Posted by martignasse — 22 Apr 2015, 17:43
]]>2015-04-22T10:35:11+02:002015-04-22T10:35:11+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32434#p32434Statistics: Posted by ceasless — 22 Apr 2015, 10:35
]]>2015-04-22T07:44:31+02:002015-04-22T07:44:31+02:00https://www.brainmodular.com/forums/viewtopic.php?t=4875&p=32428#p32428 : 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...