|
-
Jan 2nd, 2012, 06:53 AM
#17
Re: [RESOLVED] What happened to simple speed?
Well it turns out that all the alternative techniques suggested in this thread, including my own suggestions, don't make a significant difference. Drawing rectangles, drawing lines, using a graphics path or using a texture brush are all good alternatives and worth knowing about. But in the end the time to execute a Refresh depends almost entirely on the number of pixels whose colour has to be changed. Even re-clearing the background, while unnecessary, doesn't make much difference to performance because the pixels are the same. On top of that, timing code for performance remains a tricky business in DotNet and can easily lead to wrong conclusions.
BB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|