Background images for windows forms

levyuk

Well-known member
Joined
Jun 7, 2004
Messages
313
Location
Wales, UK
Programming Experience
3-5
Does anyone know whymy application uses so much cpu time when I put an image as the background? The image is only 76k in size. Any idea on how I could reduce the cpu time used?

Thanks
Jon
 
When you say CPU time do you mean usage? (as in the graph in task manager)
When is this 'CPU time' happening? i.e. on load up, all the time, when you do something....
Also are you sure the image is causeing the problem?

TPM
 
By CPU time I mean usage in task manager. It happens on form_load and whenever i move the form around the screen. I'm sure the image is the the problem because when i remove the image it works normally
 
I think you'll find that you'll always get a spike at the start of you app. since JIT is compiling your code and everything is loading. The reason for the usage when moving around the screen is all the repaints. Unless it's effecting the operation of your app. I wouldn't worry about it.

TPM
 
Back
Top