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

Graphics

 
QuestionScreen Capture over Terminal Server Pin
intonet4-Mar-08 3:29
intonet4-Mar-08 3:29 
QuestionHow to mirror the screen. Pin
Tino126-Feb-08 20:58
Tino126-Feb-08 20:58 
AnswerRe: How to mirror the screen. [modified] Pin
Smithers-Jones28-Feb-08 11:10
Smithers-Jones28-Feb-08 11:10 
QuestionHow to draw text in OpenGL and what is problem in this Code Pin
Yasir Nawazish Ali26-Feb-08 17:10
Yasir Nawazish Ali26-Feb-08 17:10 
GeneralDraw text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 0:17
Yasir Nawazish Ali26-Feb-08 0:17 
GeneralRe: Draw text in C# using OpenGL Pin
El Corazon26-Feb-08 6:02
El Corazon26-Feb-08 6:02 
GeneralRe: Draw text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 17:07
Yasir Nawazish Ali26-Feb-08 17:07 
QuestionRender bitmap Pin
robban5145143225-Feb-08 20:38
robban5145143225-Feb-08 20:38 
Hi,

I need to render bitmaps really fast with great performance.
Since I at the same time need to do other CPU demanding operations it is prefered if the rendering can be handled as much as possible by the graphics card. But the rendering must perform ok even if there is no 3D support in the graphics card.

I have tried several rendering methods without coming to a conclusion.

I have tried these methods:

MFC:
----------------------------
CDC::StretchDIBits
CDC::StretchBlt
CDC::BitBlt

GDI:
----------------------------
SetDIBitsToDevice

DirectDraw:
----------------------------
IDirectDrawSurface7::BltFast

DirectX 9
----------------------------
IDirect3DDevice9::SetTexture
IDirect3DDevice9::StretchRect
ID3DXSprite::Draw


One method is by far fastest on all three systems I have tested with.
The system setup is similar for all three, except for the graphics cards:
Windows XP. service pack 2
Intel Pentium D CPU 3.40 GHz, 2GB Ram
The graphic cards differ accordingly:
1. Matrox Millenium G550. 32MB
2. Intel 82915. 128MB
3. Geforce8600GT 256Mb

The by far fastest rendering method is "IDirectDrawSurface7::BltFast".
It is also the only method which is slowest on system 1 with the worst graphics card, and by far fastest on system 3 with the best card.
Many of the other methods are worst on system 3, with the best graphics card!

However, I'am not very happy with using an old method from DDraw7, when there should be methods which are faster and more optimized for new graphic cards in DirectX 9. Furthermore BltFast does not support resizing.

But which method is this, that is best optimized for new graphics cards but also has good performance on computers with old graphics cards? And how do I use it to get the best performance and to minimize CPU usage, while letting the GPU do the work when supported by the graphics card?


What my application does is:
Retrieving several video streams on the network in MJPEG and MPEG4 format. Decoding the video to device independent bitmaps and finally rendering the bitmaps to screen in either original size, upscaled or downscaled. (An optional solution is to handle the resizing manually).
So the method has to be good at resizing the image, and I don't think I need any time consuming dubbel buffering, since I always draw the pictures in the same size at the same place once started.


Thanks for all help!
QuestionHow to apply a texture to an irregular shape using GDI+ ? Pin
KaKa'24-Feb-08 5:06
KaKa'24-Feb-08 5:06 
GeneralRe: How to apply a texture to an irregular shape using GDI+ ? Pin
Shog924-Feb-08 9:40
sitebuilderShog924-Feb-08 9:40 
QuestionHow i can improve this website Pin
Saqib Yaqub24-Feb-08 4:19
Saqib Yaqub24-Feb-08 4:19 
AnswerRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon24-Feb-08 10:11
mvePete O'Hanlon24-Feb-08 10:11 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Saqib Yaqub24-Feb-08 11:19
Saqib Yaqub24-Feb-08 11:19 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Tim Craig24-Feb-08 12:47
Tim Craig24-Feb-08 12:47 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon25-Feb-08 0:49
mvePete O'Hanlon25-Feb-08 0:49 
AnswerRe: How i can improve this website Pin
Christian Graus25-Feb-08 9:42
protectorChristian Graus25-Feb-08 9:42 
GeneralRe: How i can improve this website Pin
Pete O'Hanlon25-Feb-08 9:56
mvePete O'Hanlon25-Feb-08 9:56 
GeneralOpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 4:11
braveheartkenya24-Feb-08 4:11 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom [modified] Pin
Christoph Menge24-Feb-08 10:14
Christoph Menge24-Feb-08 10:14 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 11:13
braveheartkenya24-Feb-08 11:13 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
Christoph Menge24-Feb-08 13:01
Christoph Menge24-Feb-08 13:01 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya29-Feb-08 10:26
braveheartkenya29-Feb-08 10:26 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
Christoph Menge3-Mar-08 1:14
Christoph Menge3-Mar-08 1:14 
QuestionWhere did my "dshow.h" go? Pin
Jun Du23-Feb-08 3:53
Jun Du23-Feb-08 3:53 
AnswerRe: Where did my "dshow.h" go? Pin
Jun Du23-Feb-08 5:57
Jun Du23-Feb-08 5:57 

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.