GDI+ VS DirectX
-
I have started doing some research for a relational database modeller. For this I'm gonna need the application to be able to do some drawing. I have been testing some simple things with GDI+ but I started thinking about the possibility of using managed DirectX. What do you think, would I get a performance gain by using DirectX compared to using regular GDI+? Or maybe DirectX would put a too high system requirement for just using the application.
-
I have started doing some research for a relational database modeller. For this I'm gonna need the application to be able to do some drawing. I have been testing some simple things with GDI+ but I started thinking about the possibility of using managed DirectX. What do you think, would I get a performance gain by using DirectX compared to using regular GDI+? Or maybe DirectX would put a too high system requirement for just using the application.
G.Ringbom wrote: What do you think, would I get a performance gain by using DirectX compared to using regular GDI+? Yes, but developing the UI will be much harder. DirectX is really targeted at easing game development, not easing UI development. For a DB modelling tool, I can't see why you would need high frame rates. GDI+ is more than capable of drawing complex screens at decent speed for an editor. As an example, I created recently a graphical editor for a rule engine, all done in C# (with a few P/Invoke calls) and the speed is very good on an old test machine (AMD 650MHz - 256MB RAM - PCI Riva TNT2 card) that we have here. Even on the biggest files, it's very usable. Yes, even I am blogging now!
-
I have started doing some research for a relational database modeller. For this I'm gonna need the application to be able to do some drawing. I have been testing some simple things with GDI+ but I started thinking about the possibility of using managed DirectX. What do you think, would I get a performance gain by using DirectX compared to using regular GDI+? Or maybe DirectX would put a too high system requirement for just using the application.
Daniel is right. Even programs like Visio use GDI This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy
-
Daniel is right. Even programs like Visio use GDI This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy
As an alternative, you *could* use Avalon instead. It's (should be) easy to use and has power of DirectX (it's based on it). This has, however, several drawbacks: 1. Development difficulties (You must own Whidbey and Avalon/WinFX CTP disc). 2. Release difficulties (you can't release your application until Avalon/WinFX is officially released (for Longhorn and XP). 3. High-spec client-machine needed as Avalon tends to need quite a machine (1 GHz processor, 256 MB Ram, DirectX 9 supporting video card and so on) though you can setup Avalon to work on a low-end machine, too.