L
lightdoll
Hello everyone.
i want to know how to decrease the cpu usage in my program.
i have to update quickly many data on gui,
so i tried to decrease the cpu usage on gui but i couldn't solve the problem.
i found the code with probloem why the cpu usage increased by debug..
Rectangle invalidateRect = new Rectangle(_detailVisibleRect.Left,
_detailVisibleRect.Top + item.Y - _vScrollBar.Value, _detailRect.Width,
item.Height);
this.Invalidate(invalidateRect);
if i don't call this code, then the cpu usage is ok,
but after i call this code, the cpu usage of my problem become between 10 ~
15%.
could you tell me how to solve this kind of problem if you have to update
many data
on GUI as fast as possible.
^^....help me
i want to know how to decrease the cpu usage in my program.
i have to update quickly many data on gui,
so i tried to decrease the cpu usage on gui but i couldn't solve the problem.
i found the code with probloem why the cpu usage increased by debug..
Rectangle invalidateRect = new Rectangle(_detailVisibleRect.Left,
_detailVisibleRect.Top + item.Y - _vScrollBar.Value, _detailRect.Width,
item.Height);
this.Invalidate(invalidateRect);
if i don't call this code, then the cpu usage is ok,
but after i call this code, the cpu usage of my problem become between 10 ~
15%.
could you tell me how to solve this kind of problem if you have to update
many data
on GUI as fast as possible.
^^....help me