Are you perchance using a Matrox graphics card? They are AFAIK the only ones
that support hardware accelleration for GDI+ and unless you have a really
kick-ass system I would be sceptical at those kinds of frame rates from
GDI+.
It might run like a dream on your machine but probably not on the standard
HP supermarket PC which is quite capable of running stuff like half-life or
flight-sim at excellent frame rates.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
<sh******@cs.fsu.edu> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
I have 10,000 rectangles in a window and it updates about 50
times/second without flickering.
I use these commands:
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPointingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
as well as using GDI+ to draw my rectangles.
Martijn Mulder wrote: >>I have a creeping suspicion that, no matter how well organized my code
>>is
>>and no matter how smart I Invalidate( ) only part of the screen, the
>>graphics under C# is s-l-o-w.
>>
>> Is that an issue?
> What are you doing?
I am 'tiling' the screen with many small pieces + animation