Well
Just made a BMP of 7 megabytes , loaded this in a picturebox control With
Visual studio 2005 on my development system
tryed it first there
Start the prog , it is showing me the picture of 7 mb in the picturebox on a
form , i move it around as an idiot and one of my CPU climbs to 23% max
i have no redraw problems at all at this system everything looks smooth
i compiled this executable , transfered it to my test system and tested it
there ( compiled executbale in release mode ) and okay it isn`t smooth as
on my highend system repaint seems to hog the system and indeed it eats
some more cpu ( with peaks to 80 % ) , but it is still not so disturbing as
you describe it
and remember i am dragging this form as an idiot around my screen
What sort of picture did you use ? , i used a screen dump of my system of
7 mb big in BMP
just created a new project in VS 2005 , threw a picturbeox control on the
empty form
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.PictureBox1.Load("C:\test.bmp")
End Sub
End Class
And loaded my 7 MB BMP screendump , and it seems to work fine here even on
my lowspec system ( ofcourse for what i would expect of that system )
Strange .......... believe me i am as surprised as you must be ... maybe
someone else could also test this just for verification
michel
kimiraikkonen said:
Well we had before a discussion about perfomance were i could not
reproduce
the behavior however then i had a superior system to yours
at this moment i am working on a old test system.
wich is a + - 5 years old AMD XP 2400 + , with 512 MB shared memory (
Nvidia N-Force 2 mobo ) the onboard videocard ( slightly bether as a GF
2
MX 400) is using 64 MB , it is running on a genuine Windows XP Home
with
SP 2 and a 40 GB IBM De(ath)sk[star] (
) harddisk UDMA 133 .
And again i can drag whatever i want and yes indeed it eats some CPU
cycles
( cost of redrawing the form ) however it is not disturbing to me while
this
is a heavy loaded system .
Are you sure your computer hardware and software is in good state ??
Yes, current system which is P4 2.4GHZ, 1GB memory, 64 MB Geforce4
MX440 etc. and your old system isn't superior to this spec i suppose.
Open a large picture such as 5-7 megapixels and load it into
picturebox, i bet you'll feel like a torture while dragging.
Open task manager somewhere, then follow the CPU usage while dragging
picturebox-based form around the screen with your old system.
Usually it depends on the picture size, but picture size doesn't have
effect on cpu usage "so much" if you don't load a very tiny picture
(eg: avatar).
No such problems in 3rd party image viewing softwares such as ACDSee
or XnView.
Thanks