Last post Sep 15, 2014 08:08 PM by markfitzme
Sep 13, 2014 07:36 AM|IranianCuriousBoy|LINK
Is there any way that GDI+ uses GPU instead of CPU?
Sep 13, 2014 07:45 AM|PatriceSc|LINK
As far as I know this is not an "all or nothing" answer ie some parts are hardware accelerated and some others are not. For Advanced GDI+ topic a Windows programming forum could be better. Knowing also what you are trying to do could help.
Sep 13, 2014 12:25 PM|IranianCuriousBoy|LINK
I draw simple shapes like rectangles, ellipses, text etc on transparent image and draw these images on other images(to not draw them each time) and also resize images. I,m using transparency heavily.
Is there any reference to tell what operation is done with CPU and what with GPU?
Actually I was reading about Direct2D and some differences with GDI+ and there are some question with regard to this like "Is Direct2D is available on IIS" and many other questions. Can you tell me a comprehensive reference to find answers to my questions
and what options I have?
Sep 13, 2014 12:47 PM|PatriceSc|LINK
And this is a web app ? Try
I would do it the other way round ie I would Wonder if I have a perf problem and would try to narrow it down. Also depending what you are doing you could consider client side rendering etc...
Direct2D dépends on the hardware and more liekly a server doesn't have a very high end card. Are you sure this is the major factor for your web app ?
Sep 13, 2014 11:45 PM|IranianCuriousBoy|LINK
Sep 14, 2014 09:40 AM|PatriceSc|LINK
I meant it sounds like if you are trying to solve some kind of performance issue? If yes, I would suggest to discuss directly about this rather than at a more theorical level.
Also I have no idea about what you are trying to do. For now it seems you are doing some graphics server side but I have no idea about the actual complexity (drawing shapes even with transparency doesn't seems sompething that should be that slow but then
I have no idea how many or if you are doing this often before sending a new image client side etc... etc...)
Not knowing what you are trying to do it's hard to suggest but you also do have client side graphics capabilities (going up to 3D with WebGL on modern browsers).
Edit: for a start try maybe http://raphaeljs.com/ (uses SVG/VML).
Sep 15, 2014 03:34 AM|IranianCuriousBoy|LINK
There is no performance issue now. I'm just trying to study the problems that we may encounter in the final stages of a project.
If you think that this thread is getting long, tell me to stop it and continue in another thread. Personally I think the conversations make threads rich of information.
There are some questions:
1-The first link you provided says:
GDI is hardware accelerated on Windows XP, and accelerated on Windows 7 when the Desktop Window Manager is running and a WDDM 1.1 driver is in use. I searched the web and Desktop Window Manager is a service that is on in Win 8 but I did not find it. How
can I test that WDDM 1.1 is running? Is there any article about Desktop Window Manager and WDDM 1.1?
2-How can I measure GPU Performance? Is there a standard windows tool for it?
Thanks for your patience
Sep 15, 2014 08:08 PM|markfitzme|LINK
Generally, GPU usage is not available in a server environment. It's not an IIS issue, just I have yet to see a server that ships with a GPU. They can increase power consumption dramatically, which increases heat and cooling costs.
Here are some scripts that make drawing interesting
There is more and more going on in the browser as these basic libraries become built up. I've seen some very interesting image editing beginning to occur. Some of these scripts even enable you to save to PNG. Even without them, there is a lot more that you
can do with CSS/HTML than ever before