Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. GDI+ VS DirectX

GDI+ VS DirectX

Scheduled Pinned Locked Moved C#
graphicsdatabasevisual-studiowinformsgame-dev
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    G Ringbom
    wrote on last edited by
    #1

    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.

    D A 2 Replies Last reply
    0
    • G G Ringbom

      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.

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      • G G Ringbom

        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.

        A Offline
        A Offline
        Alex Korchemniy
        wrote on last edited by
        #3

        Daniel is right. Even programs like Visio use GDI This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

        L 1 Reply Last reply
        0
        • A 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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups