Click here to Skip to main content
16,011,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: gdi+ slow Pin
Judah Gabriel Himango24-Jun-05 4:57
sponsorJudah Gabriel Himango24-Jun-05 4:57 
GeneralRe: gdi+ slow Pin
bwagz24-Jun-05 5:18
bwagz24-Jun-05 5:18 
GeneralRe: gdi+ slow Pin
Judah Gabriel Himango24-Jun-05 5:34
sponsorJudah Gabriel Himango24-Jun-05 5:34 
GeneralRe: gdi+ slow Pin
bwagz24-Jun-05 5:43
bwagz24-Jun-05 5:43 
GeneralRe: gdi+ slow Pin
Anthony Baraff24-Jun-05 6:57
Anthony Baraff24-Jun-05 6:57 
GeneralRe: gdi+ slow Pin
Anonymous24-Jun-05 21:21
Anonymous24-Jun-05 21:21 
GeneralRe: gdi+ slow Pin
ACorbs25-Jun-05 5:22
ACorbs25-Jun-05 5:22 
GeneralRe: gdi+ slow Pin
Anthony Baraff27-Jun-05 3:29
Anthony Baraff27-Jun-05 3:29 
If you do want to use DirectX take a look at overlays. That will allow you to create an area within your window to draw your charts without giving up all of the other UI niceties of C# and GDI+.

My guess is that there isn’t anything here that you can’t do using GDI+. Here are a few things to check:

Are you redrawing the background of your graph each time? It’s likely that a large number of drawing commands are spent redrawing an unchanging background every time the graph is drawn. Try caching the background and Blit it to your graph area.

Are you using DrawLine or DrawLines? DrawLines is much faster.

Is it really the drawing that is slow? Have you looked at the code with a profiler to see which methods are taking the longest?

Regarding the double buffering, are you doing the buffering yourself in an off-screen object, or are you using the double buffer control style?

Also, what are the timers for?
GeneralDETECT OFFICE VERSION Pin
Brunelleschi24-Jun-05 3:18
Brunelleschi24-Jun-05 3:18 
GeneralRe: DETECT OFFICE VERSION Pin
Anonymous25-Jun-05 0:25
Anonymous25-Jun-05 0:25 
GeneralCommand Prompt Explorer Bar Error! Pin
bosfan24-Jun-05 2:52
bosfan24-Jun-05 2:52 
GeneralRe: Command Prompt Explorer Bar Error! Pin
Colin Angus Mackay24-Jun-05 3:46
Colin Angus Mackay24-Jun-05 3:46 
GeneralRe: Command Prompt Explorer Bar Error! Pin
bosfan24-Jun-05 9:26
bosfan24-Jun-05 9:26 
GeneralThread Exceptions Pin
Marc Clifton24-Jun-05 2:40
mvaMarc Clifton24-Jun-05 2:40 
GeneralRe: Thread Exceptions Pin
Sebastian Schneider24-Jun-05 3:56
Sebastian Schneider24-Jun-05 3:56 
GeneralRe: Thread Exceptions Pin
Marc Clifton24-Jun-05 6:04
mvaMarc Clifton24-Jun-05 6:04 
GeneralRe: Thread Exceptions Pin
Judah Gabriel Himango24-Jun-05 4:58
sponsorJudah Gabriel Himango24-Jun-05 4:58 
GeneralRe: Thread Exceptions Pin
Marc Clifton24-Jun-05 6:04
mvaMarc Clifton24-Jun-05 6:04 
GeneralRe: Thread Exceptions Pin
Judah Gabriel Himango24-Jun-05 6:20
sponsorJudah Gabriel Himango24-Jun-05 6:20 
GeneralRe: Thread Exceptions Pin
Richard Deeming24-Jun-05 8:11
mveRichard Deeming24-Jun-05 8:11 
Generalpostgresql odbc Pin
xrado24-Jun-05 1:24
xrado24-Jun-05 1:24 
GeneralError loading Symbols while trying to debug winform app. Pin
abcxyz8224-Jun-05 0:37
abcxyz8224-Jun-05 0:37 
GeneralRe: Error loading Symbols while trying to debug winform app. Pin
Dave Kreskowiak24-Jun-05 1:44
mveDave Kreskowiak24-Jun-05 1:44 
GeneralRe: Error loading Symbols while trying to debug winform app. Pin
abcxyz8224-Jun-05 1:54
abcxyz8224-Jun-05 1:54 
GeneralRe: Error loading Symbols while trying to debug winform app. Pin
J4amieC24-Jun-05 2:36
J4amieC24-Jun-05 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.