D3D Video Driver

I’m looking for some information on the D3D video driver for RetroArch. Specifically I’m wondering if there’s anywhere I could grab a pre-compiled version of the video driver, or good insight into how I would go about compiling it myself (I vaguely recall having a lot of trouble with it in the past).

Thanks in advance.

EDIT: (switched out “renderer” for “video driver” as labelled in Phoenix to avoid confusion)

I believe the included SSNES-D3D9.dll library is it, but I’m not sure that it actually works anymore. I just tried it a couple of times and it kept crashing, so…

Yeah, I couldn’t get that one to work either (I’m assuming it’s outdated and hasn’t been changed to reflect the change from SSNES to RetroArch). I also found a retroarch-d3d9.dll at http://themaister.no-ip.org/downloads/ but I couldn’t get it to work either.

I really hope I can find an answer though, my netbook seems to do a real bad job of anything with OpenGL, and I’m finding I hit a brick wall on GBA emulation at around 50fps that just barely keeps games from being playable, and I’m fairly certain I’d be able to hit 60fps without fail on d3d.

https://dl.dropbox.com/u/35695760/RetroArch-D3D9-lex-x86_64.dll

Try this one. Maister compiled it for me a month or so ago. :slight_smile: It’s a 64-bit Windows binary.

Edit: Oops. Build was outdated. Here’s the latest (updated link above), compiled by me from git master just now, tested, and working.

64-bit won’t work for me, I’m stuck running 32-bit on my netbook.

Some small problems in RetroArch-D3D9

  • RetroArch will crash by activating another window upon startup.
  • Another, various commands are executed then Right-Alt + PrtScreen

thanks.

I use official build: RetroArch v.0.9.7 RetroArch-D3D9-x86.dll libretro-git-snes9x-x86.dll

Rephrase please.

I’m sorry. my english is bad :frowning:

One issue, please watch the video. https://dl.dropbox.com/u/102023246/test.mkv

For the second problem could not be reproduced by default. but there is a problem. Quick fix: DirectInput.cpp line244

int DirectInput::state(const struct rarch_keybind* bind, unsigned player_)
{
+   if (0 < bind->key)
+   {
      int ret = di_state[Map::sdl_to_di_lut[bind->key]] & 0x80 ? 1 : 0;
      if (ret)
         return ret;
+   }

Thanks for video. Should have fixed both: https://anonfiles.com/file/bd0d87566e45808dbd95dcf2ec69e312.

Thank you very much! works fine :slight_smile:

I’ve tried both the version included with 0.9.7 and the version Maister linked in this thread, and I get the same problem with both. RetroArch will start, then immediately crash and return to Phoenix. I tried via command line as well and got this:

RetroArch: Set audio input rate to: 32146.00 Hz.
RetroArch: Adjusting aspect ratio to 1.50
RetroArch: Video @ 240x160
RetroArch: Loaded driver: "Direct3D"
[Direct3D]: Desktop size: 1024x600
[Direct3D Error]: Failed to init device
RetroArch [ERROR] :: Failed to start driver.
RetroArch [ERROR] :: Cannot open video driver ... Exiting ...
RetroArch [ERROR] :: Fatal error received in: "init_video_input()"

A D3D call failed (bringing the device up). Something might have gone wrong in the build, or your drivers are borked.

I tried reinstalling my custom driver and also the stock driver for my netbook (GMA 950), and also tried nuking and reinstalling DirectX. Still no dice.

Here’s a link to a win64 build of the latest git revision of RetroArch with the built-in D3D9 driver. Try this. If it doesn’t work, it’s something strange with my build system. It works for me, but I’ve heard other people have issues with my builds and I’m not 100% sure why.

https://dl.dropbox.com/u/35695760/retroarch-win64-git-lex.zip

Can’t do win64, but if you could compile it for 32bit that would be great.

I just compiled the latest git today for win32 which includes the merged D3D9 driver if you’re still looking for it.

EDIT: Link removed now that 0.9.8-beta1 has been released.

I was actually trying to compile it myself today and was having some trouble, this saves me a lot of time, thanks.

Unfortunately D3D is still crashing and giving me “failed to init device” so I’m going to assume there’s some issue with my netbook and directx. I’ll have to look into it, but I may just wind up picking up a new netbook.

Posting again because I finally got a chance to test this on my desktop. Everything works fine, D3D9 runs without a hitch.