Thursday, 15 April 2010

.net - Why is my program become jittery when it's minimized/in background? -



.net - Why is my program become jittery when it's minimized/in background? -

i'm writing little programme interacts cad bundle software via com api. programme written in vb.net, using winform , targeting .net framework 4.

basically programme (in order of excecution):

receive , parse incoming serial data update gui controls (textbox/images) based on parsed serial data call api method parsed serial info arguments, api method deals geometric manipulation of cad model (i.e moving or alter in dimension)

those routine enclosed within single while() loop , implemented using backgroundworker gui remain responsive.

the programme works fine when it's in foreground (it's not total screen). can see geometric changes in cad software running smoothly.

however, programme minimized , switch cad software window geometric changes started lag/jitter.

switch focus program, running buttery smooth again.

why that? when minimized app less processor priority?

how can prepare this?

could serial parsing/gui command updates sort-of suspended when programme in background? (i.e api calls blocked before gui controls can updated)

should extract gui update main loop?

do tell me if think more info required, update question accordingly.

thanks in advance, i'm new in programming world, please bear me. :)

potentially windows setting (check scheme preferences) has performance set boost "active" application (client computers) versus "all applications equally" (servers).

.net vb.net winforms optimization com

No comments:

Post a Comment