Click here to Skip to main content
15,912,977 members
Home / Discussions / Graphics
   

Graphics

 
QuestionHow to manage data from Directshow filter? Pin
Van Ly Doc Hanh19-Nov-08 7:11
Van Ly Doc Hanh19-Nov-08 7:11 
AnswerRe: How to manage data from Directshow filter? Pin
Mark Salsbery21-Nov-08 6:01
Mark Salsbery21-Nov-08 6:01 
QuestionFaster drawing in C# application than GDI+ Pin
User 1278216-Nov-08 17:52
User 1278216-Nov-08 17:52 
AnswerRe: Faster drawing in C# application than GDI+ Pin
MikeMarq17-Nov-08 8:11
MikeMarq17-Nov-08 8:11 
GeneralRe: Faster drawing in C# application than GDI+ Pin
User 1278220-Nov-08 15:36
User 1278220-Nov-08 15:36 
GeneralRe: Faster drawing in C# application than GDI+ Pin
MikeMarq22-Nov-08 7:48
MikeMarq22-Nov-08 7:48 
GeneralHere's some code Pin
MikeMarq22-Nov-08 7:51
MikeMarq22-Nov-08 7:51 
AnswerRe: Faster drawing in C# application than GDI+ Pin
Alan Balkany18-Nov-08 3:56
Alan Balkany18-Nov-08 3:56 
1. C# does automatic array-bounds checking which slows it down. Try putting your plotting code inside an unsafe { } block, which may speed it up.

2. Your code is executed in a pipeline, where several consecutive instructions may be in various stages of execution at any one point. When you branch (i.e. go back to the top of your inner loop) it messes this up.

Drawing multiple points in your inner loop (called "loop unrolling") allows your program to take advantage of pipelining. E.g. instead of

while ()
{
draw point n
}

Try:

while ()
{
draw point n
draw point n+1
draw point n+2
draw point n+3
}

3. You can write a faster plotting function in C++ using GDI and put it in a DLL. Then you can call this DLL from C#.
GeneralRe: Faster drawing in C# application than GDI+ Pin
User 1278220-Nov-08 15:33
User 1278220-Nov-08 15:33 
GeneralRe: Faster drawing in C# application than GDI+ Pin
Luc Pattyn22-Nov-08 9:42
sitebuilderLuc Pattyn22-Nov-08 9:42 
AnswerRe: Faster drawing in C# application than GDI+ Pin
ARon_10-Feb-09 8:19
ARon_10-Feb-09 8:19 
QuestionDirect3DCreate9 question Pin
Pedram Behroozi15-Nov-08 8:38
Pedram Behroozi15-Nov-08 8:38 
AnswerRe: Direct3DCreate9 question Pin
Baltoro16-Nov-08 10:40
Baltoro16-Nov-08 10:40 
GeneralRe: Direct3DCreate9 question Pin
Pedram Behroozi16-Nov-08 11:22
Pedram Behroozi16-Nov-08 11:22 
GeneralRe: Direct3DCreate9 question Pin
Baltoro20-Nov-08 14:01
Baltoro20-Nov-08 14:01 
GeneralRe: Direct3DCreate9 question Pin
Pedram Behroozi20-Nov-08 22:02
Pedram Behroozi20-Nov-08 22:02 
GeneralRe: Direct3DCreate9 question Pin
Mark Churchill13-Jan-09 18:51
Mark Churchill13-Jan-09 18:51 
QuestionExport to Bitmap. Pin
vinay_K10-Nov-08 1:54
vinay_K10-Nov-08 1:54 
Question[please help]why i cannot render my pic?thks! Pin
kaviniswell7-Nov-08 16:19
kaviniswell7-Nov-08 16:19 
AnswerRe: [please help]why i cannot render my pic?thks! Pin
Baltoro8-Nov-08 9:39
Baltoro8-Nov-08 9:39 
GeneralRe: [please help]why i cannot render my pic?thks! Pin
kaviniswell12-Nov-08 19:30
kaviniswell12-Nov-08 19:30 
AnswerRe: [please help]why i cannot render my pic?thks! Pin
Mark Salsbery9-Nov-08 6:55
Mark Salsbery9-Nov-08 6:55 
QuestionHow to create water ripple in directx? Pin
Md. Ali Naser Khan5-Nov-08 23:00
Md. Ali Naser Khan5-Nov-08 23:00 
AnswerRe: How to create water ripple in directx? Pin
El Corazon7-Nov-08 14:54
El Corazon7-Nov-08 14:54 
QuestionHi there :) Please help me Pin
viashivan5-Nov-08 5:02
viashivan5-Nov-08 5:02 

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.