• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C# 2008 SLLLOOOOW

gregulator

Senior member
So I upgraded my machine to a C2D 2.2 and 8600GT and all of a sudden my c# program that uses the GDI+ is at least 8-10 times slower than on a slower machine running c# 2005. I tried using different .NET versions but I am still super slow. My other programs that dont use the GDI+ seem to run fine. Any ideas? I must be missing something simple...
 
Well, most of the GDI+ APIs are Not hardware accelerated. Your older programs probably used the original GDI APIs which were usually hardware accelerated. Obviously when hardware gets involved, it usually make things faster.

Exactly which part of your code is running slow? If it would be possible to go back to C# 2005 and benchmark, and then benchmark C# 2008 to see what the difference is between the versions.

Plus try to remember when your done with the app to change the project to "Release" instead of "Debug" which will help 'tighten'/optimize the app.

Also go to the project properties and be sure to check the box that says "Enable Optimizations" which will further use SSE/3DNow and whatnot.

Otherwise, i'm not sure what to tell you, sorry 🙂


Jason
 
You upgraded your machine and upgraded to 2008 at the same time? It would be more helpful for you to diagnose if you tested in similar environments, ie the same application in the same studio. Even if you run 2008 and you have the 2.0 framework selected you should still using the same framework as the 2005 app had. Did you run through the project conversion wizard when you first opened the project? If so did you check your code hasn't changed significantly during the upgrade process?

Without any sort of equal comparison it's hard to say what your issue could be. Make sure your hardware has all the latest drivers, and optimizations enabled, and you have all the latest service packs.


 
I just installed 2005 and the same symptoms. It takes forever to launch the program from the debugger, and the GDI+ drawing is really slow. I am going to try it on a another computer, but it seems like this computer is missing something. Even a P3 800MHz runs it fine (even the debug EXE!).
 
Just an update for those with similar problems... I was not double buffering before (knew I needed to do it but never implemented), so I tried that as a last resort and BLAMO! Much better. Still not sure why it performed better on the older machines not double buffered (maybe GDI optimized cards?) but it is way mo betterererere!
 
Back
Top