Click here to Skip to main content
15,899,556 members
Home / Discussions / Graphics
   

Graphics

 
QuestionCreate real time graphical line chart from data save in txt file format Pin
yefeng_law13-Sep-08 6:52
yefeng_law13-Sep-08 6:52 
AnswerRe: Create real time graphical line chart from data save in txt file format Pin
Tim Craig13-Sep-08 12:03
Tim Craig13-Sep-08 12:03 
GeneralRe: Create real time graphical line chart from data save in txt file format Pin
yefeng_law20-Sep-08 7:15
yefeng_law20-Sep-08 7:15 
GeneralRe: Create real time graphical line chart from data save in txt file format Pin
Tim Craig21-Sep-08 18:25
Tim Craig21-Sep-08 18:25 
QuestionStrange error capturing the desktop to a bitmap Pin
rikshot13-Sep-08 5:48
rikshot13-Sep-08 5:48 
AnswerRe: Strange error capturing the desktop to a bitmap Pin
Mark Salsbery13-Sep-08 9:05
Mark Salsbery13-Sep-08 9:05 
QuestionHelp needed, DirectX 10 Sprite rendering problem Pin
Sikozu13-Sep-08 2:05
Sikozu13-Sep-08 2:05 
QuestionHow to improve drawing performance with GDI+? Pin
User 127827-Sep-08 12:44
User 127827-Sep-08 12:44 
Hello,

I'm updating a legacy GDI and C plotting program in GDI+ and C#. The legacy application is capable of plotting 500,000 points in under a second while it takes 10 - 12 seconds for my application to do the same thing.

I know that GDI is hardward accelerated while GDI+ is not, but I do need a significantly faster draw rate for my updated application to be acceptable.

//Only plot the points within the active window
for (Int64 q = PlotTimeStart + 1; q < PlotTimeStop; q++)
{
	//Calculate the new Y coordinate and draw a line from the previous point
	YPt = (float)(ZeroMark - SeriesY[p][q] * RangeFactor);
	
	dc.DrawLine(PenSeries[p], XPtOld, YPtOld, XPt, YPt);


	//Store the current point as the previous
	XPtOld = XPt;
	YPtOld = YPt;

	//Add the width onto the base to arrive at the next X coordinate
	XPt += PlotTimeWidth;
}


SeriesY is a List<double[]>.

I feel that my inner-loop is as concise as it can be, but I'm looking for any suggestions to help increase the draw speed.

Thanks

modified 12-Jul-20 21:01pm.

AnswerRe: How to improve drawing performance with GDI+? Pin
Tim Craig8-Sep-08 9:57
Tim Craig8-Sep-08 9:57 
GeneralRe: How to improve drawing performance with GDI+? Pin
User 127828-Sep-08 13:10
User 127828-Sep-08 13:10 
GeneralRe: How to improve drawing performance with GDI+? Pin
Tim Craig8-Sep-08 14:25
Tim Craig8-Sep-08 14:25 
GeneralRe: How to improve drawing performance with GDI+? Pin
User 127828-Sep-08 15:09
User 127828-Sep-08 15:09 
QuestionVirtual World Pin
AndrewMcIntyre7-Sep-08 5:08
AndrewMcIntyre7-Sep-08 5:08 
QuestionDirect3D and 2D Rendering Pin
Raheel Anwar7-Sep-08 3:24
Raheel Anwar7-Sep-08 3:24 
Questionconvert .3d file in .x file Pin
sepel6-Sep-08 23:28
sepel6-Sep-08 23:28 
AnswerRe: convert .3d file in .x file Pin
Pete O'Hanlon7-Sep-08 23:29
mvePete O'Hanlon7-Sep-08 23:29 
GeneralRe: convert .3d file in .x file Pin
sepel8-Sep-08 0:33
sepel8-Sep-08 0:33 
GeneralRe: convert .3d file in .x file Pin
Pete O'Hanlon8-Sep-08 2:26
mvePete O'Hanlon8-Sep-08 2:26 
GeneralRe: convert .3d file in .x file Pin
sepel8-Sep-08 17:57
sepel8-Sep-08 17:57 
QuestionSaving image files in ARGB format (with transparency) Pin
pbalaga5-Sep-08 9:23
pbalaga5-Sep-08 9:23 
QuestionDirectX, OpenGL, WPF or XNA? Pin
Uri912-Sep-08 8:18
Uri912-Sep-08 8:18 
AnswerRe: DirectX, OpenGL, WPF or XNA? Pin
John_Adams2-Sep-08 19:26
John_Adams2-Sep-08 19:26 
GeneralRe: DirectX, OpenGL, WPF or XNA? Pin
Uri913-Sep-08 2:19
Uri913-Sep-08 2:19 
GeneralRe: DirectX, OpenGL, WPF or XNA? Pin
Pete O'Hanlon4-Sep-08 10:49
mvePete O'Hanlon4-Sep-08 10:49 
QuestionHow can I have OpenGL in MFC SDI and Dialog at the same time Pin
Member 44253871-Sep-08 3:16
Member 44253871-Sep-08 3:16 

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.