Sabtu, 16 Januari 2010

OpenGL vs DirectX - Benchmark Comparison

I've done a few benchmarks to date and today I am going to add another interesting set of numbers to the list. Unigine is a cross-platform real-time 3D engine, I stumbled across awhile back on some message boards I am a part of. Since it is cross platform it offers the benchmark rendering in both OpenGL and DirectX APIs, as such I was curious as to which of the interfaces that are commonly used for 3D development offered better performance.

The Tests: Unigine offers two free benchmarks - Tropics and Sanctuary. I ran both demos using OpenGL, DirectX 9.1, and DirectX 10.0 under the 1680x1050 resolution.

The Hardware: While my hardware is not fastest in the world it is (as of posting this) relatively new and decently quick. Processor - Intel p9700 2.8ghz Dual Core, RAM - 4gigs of DDR3, Video Card: nVidia 260m with 1gig DDR3 dedicated memory (Running the latest stable nVidia driver 195.62).

The Software: Windows 7 Ultimate 64bit & Unigine Benchmarks

The Results:
Tropics -
  • OpenGL - 31.8 fps
  • DirectX 9.1 - 34.9 fps
  • DirectX 10.0 - 35.8 fps
Sanctuary -
  • OpenGL - 36.0 fps
  • DirectX 9.1 - 39.7 fps
  • DirectX 10.0 - 42.6 fps
Wrapping Up:
Clearly DirectX 10 appears to be the optimum choice performance wise. In the case of the tropics benchmark it scored about 12% higher and for Sanctuary it scored around 16% higher. Worth noting is that while running the benchmarks there really isn't truly much detail difference between the rendering in the three different selections (meaning most people would not be able to tell the difference between which of the three was is use). Also I'd like to mention for any who may not know that OpenGL as the name implies is free open source software and runs fully cross-platform (where is DirectX is locked to the MS Windows and XBox) - so if you want to develop for a wider range the slightly slower OpenGL may be the best choice of the three to use.

~Jeff Hoogland
Please note while these benchmark scores presented are accurate to the best of my abilities, they only represent my personal hardware and software configurations. Your results on your own system(s) may vary (and if they do, please share them!).

Tidak ada komentar:

Posting Komentar