Home > Net >  Eerie form loses focus caused CPU to soar
Eerie form loses focus caused CPU to soar

Time:11-04

I a data processing software services, c #, has a form interface, with the dev express interface controls library, the CPU interface runtime 40% to 50%, there was a slight fluctuations, run is for a long time, but when the window loses focus, that is not the current form, soon went to 100% CPU utilization  , the great god help him!

CodePudding user response:

Is there a timer, multithreading, window drawing, check out these places,

CodePudding user response:

VS a viewer's own performance, can locate the CPU and memory usage.
https://docs.microsoft.com/zh-cn/visualstudio/profiling/profiling-feature-tour? View=v - 2019

CodePudding user response:

Want to see the specific code,

CodePudding user response:

reference 1/f, guiyang horse Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
is there a timer, multithreading, window drawing, check out these places,

The key is to form a appear only loses focus,

CodePudding user response:

refer to the second floor ziqi0716 response:
VS a viewer's own performance, can locate the CPU and memory usage.
https://docs.microsoft.com/zh-cn/visualstudio/profiling/profiling-feature-tour? View=v - 2019

Could you tell me which version is vs? V - 2019?

CodePudding user response:

refer to the second floor ziqi0716 response:
VS a viewer's own performance, can locate the CPU and memory usage.
https://docs.microsoft.com/zh-cn/visualstudio/profiling/profiling-feature-tour? View=v - 2019

I am a little doubt is the graphics card, code, or other hardware can't know forms is not the form... Terrible frequent close to 100% CPU utilization

CodePudding user response:

refer to 6th floor five04 response:
Quote: refer to the second floor ziqi0716 response:
VS a viewer's own performance, can locate the CPU and memory usage.
https://docs.microsoft.com/zh-cn/visualstudio/profiling/profiling-feature-tour? View=v - 2019

I am a little doubt is the graphics card, code, or other hardware can't know forms is not the form... Terrible frequent close to 100% CPU usage


Graphics card only output device, is to judge by the operating system is the current form, not judge the graphics card,

CodePudding user response:

reference 5 floor five04 reply:
Quote: refer to the second floor ziqi0716 response:
VS a viewer's own performance, can locate the CPU and memory usage.
https://docs.microsoft.com/zh-cn/visualstudio/profiling/profiling-feature-tour? View=v - 2019

Could you tell me which version is vs? V - 2019?
have, after at least 2015
  •  Tags:  
  • C#
  • Related