Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: MentalPower on April 08, 2007, 08:09:43 pm

Title: Ingame Movies not working in D3D mode
Post by: MentalPower on April 08, 2007, 08:09:43 pm
Hello guys,

My problem is simple, the ingame movies will not play if I have FreeSpace running in Direct3D mode. They will run in OpenGL, but that mode presents performance issues in my system. I am running FreeSpace2 Open 3.6.9 installed with the installer provided at http://www.fsoinstaller.com/ The DXDiag and Caps stuff is included in the attachment. Any ideas?


EDIT: Crap, just saw the "Post bugs in MANTIS" thread, sorry guys.

[attachment deleted by admin]
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 08, 2007, 10:07:51 pm
Not only that, D3D isn't a supported mode at all anymore and the option to use it will be removed in the future.  You're better off getting your OpenGL to run better than mess with D3D.
Title: Re: Ingame Movies not working in D3D mode
Post by: MentalPower on April 09, 2007, 01:09:08 am
Ok then, how would I increase OpenGL performance on my system?
Title: Re: Ingame Movies not working in D3D mode
Post by: karajorma on April 09, 2007, 02:03:25 am
What system do you have?
Title: Re: Ingame Movies not working in D3D mode
Post by: MentalPower on April 09, 2007, 03:33:22 am
Dell Inspiron 6400

Intel Core 2 Duo 2.0Ghz
2GB DDR2 RAM
ATI Mobility Radeon x1300 64MB (+767MB from RAM)
Windows Vista 32-bit
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 09, 2007, 11:44:59 am
Well, since everything else about your system seems top notch, you should probably make sure you have the newest video card drivers installed.  The development for Vista hasn't come along as fast as it could have, and there's been a lot of bugs that make getting FS2 running in Vista a bugger.  So if you haven't gotten new drivers from ATI, I would do that first and see what happens.  Your system should be more than capable, I can only imagine it's Vista and ATI's drivers causing the hiccups in OpenGL mode.

You might also try removing the adveffects files if you got those with the installer.  Look in your freespace2\mediavps directory, and there may be two files, adveffects and 710_adveffects, or something like that, you want to put those in a new directory in that folder to disable them, so I'd just make a new folder called disabled_vps and put them in that.  They have high-memory usage enhancements, and since your video card only has 64 built in MB, the lag of accessing the rest of it in DDR2 could be causing some slowdown as well.
Title: Re: Ingame Movies not working in D3D mode
Post by: jr2 on April 09, 2007, 12:02:59 pm
... Has anyone tried running FS2 Open in Vista using XPSP2 Compatibility mode?
Title: Re: Ingame Movies not working in D3D mode
Post by: Sphynx on April 09, 2007, 12:53:08 pm
If I might add something:

I notice that when I run things in OpenGL that things don't run as well as in D3D. There are intermittent framerate drops that make for a sort of visual "clicking" effect, and don't seem to have any correlation with anything particularly resource-demanding being rendered on-screen.
Title: Re: Ingame Movies not working in D3D mode
Post by: diceman111 on April 09, 2007, 01:18:08 pm
... Has anyone tried running FS2 Open in Vista using XPSP2 Compatibility mode?

I have didnt really notice anything different, then again I usally have between 60-120 Fps, but the drivers for the graphics card are still the same and that might be the biggest problem if you are running Vista and having performance issues.

I am currently using Nvidias 101.41 Beta Drivers
Title: Re: Ingame Movies not working in D3D mode
Post by: MentalPower on April 09, 2007, 06:04:38 pm
If I might add something:

I notice that when I run things in OpenGL that things don't run as well as in D3D. There are intermittent framerate drops that make for a sort of visual "clicking" effect, and don't seem to have any correlation with anything particularly resource-demanding being rendered on-screen.
This is exactly what happens in my system.
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 09, 2007, 06:18:53 pm
Well, from what I've heard, ATI has crapped on OpenGL support in its Vista drivers for the time being, opting to focus more on getting D3D support optimal, and OpenGL has taken a backseat to that.  There's numerous other threads around here about how OpenGL runs far worse on vista than it did on XP because of this.  It's not necessarily ATI's fault that they haven't had the time to fix it, I'm just saying this is what has happened, according to the reports I've seen around here.  Only option I know of then is to wait for better drivers, or try a OpenGL to D3D wrapper.  I just dug one up for another guy who has an S3 card with no opengl support, it's called GLDirect, might offer better performance than the native OpenGL mode, although I can't promise there won't be a loss in quality as I haven't tested it.  I have a copy of 5.0.3 if you can't find it and are interested.
Title: Re: Ingame Movies not working in D3D mode
Post by: MentalPower on April 09, 2007, 06:43:48 pm
My roommate has an nVidia card and has the same performance drop when using OpenGL vs D3D

Pentium 4 D 3.2Ghz
3GB DDR2 RAM
nVidia GeForce 7300 256MB
Windows Vista 32-Bit
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 09, 2007, 07:17:48 pm
Is he using the newest drivers?  Nvidia is still ironing out bugs in theirs as well, and I doubt each card is going to get the same fixes and boosts with each new driver set.
Title: Re: Ingame Movies not working in D3D mode
Post by: Sphynx on April 09, 2007, 08:11:46 pm
I'm actually running an Nvidia GeForce 7600 GS with the latest drivers on a dual-core Pentium with 2 Gigs of RAM, and still see the problem. Gevatter Lars of the Saga team has also noticed it, and he's running a similar rig. Also, my brother who has similar (but weaker) hardware has noticed it.
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 09, 2007, 08:18:51 pm
It looks like both companies still have some bugs to iron out in their drivers.  Unless there's something the SCP code is doing that Vista doesn't like, but I'm still betting it's the card's OpenGL support in Vista to blame.
Title: Re: Ingame Movies not working in D3D mode
Post by: MentalPower on April 10, 2007, 12:39:06 am
Just out of curiosity, why are you discontinuing D3D support?
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 10, 2007, 12:55:34 am
Not enough coders to work on both.  OpenGL is cross platform, so requires the most of the effort, and D3D would only be useful to windows users.  No one wants to code D3D fixes, so it's being removed.  That's what I've read anyway.
Title: Re: Ingame Movies not working in D3D mode
Post by: Turey on April 10, 2007, 01:29:23 am
Just out of curiosity, why are you discontinuing D3D support?

If you want to code D3D support for us, go ahead. Otherwise, there's more important things to be done with the limited number of coders available.
Title: Re: Ingame Movies not working in D3D mode
Post by: Sphynx on April 10, 2007, 10:37:59 am
It looks like both companies still have some bugs to iron out in their drivers.  Unless there's something the SCP code is doing that Vista doesn't like, but I'm still betting it's the card's OpenGL support in Vista to blame.

Actually, I'm running XP.
Title: Re: Ingame Movies not working in D3D mode
Post by: jr2 on April 10, 2007, 10:49:15 am
...And you have the latest drivers?  Yea, I just checked, you said you were...hmm.
What version of OGL does FS use, anybody?  2.0?  VS DX 8?  or was it DX 5?  I would expect the DX8 would work faster, but with the graphics not looking as nice as FS running in OGL with the proper command line switches... (if you need them, I can look them up for you).
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 10, 2007, 11:27:47 am
Well I've not heard a single report of it having issues in XP.  Might want to mantis it then.
Title: Re: Ingame Movies not working in D3D mode
Post by: MentalPower on April 10, 2007, 04:32:20 pm
Yes we're both running the latest version of our respective graphics card drivers. I believe FS uses DX8 interfaces. As for the quality of the graphics, I really haven't seen a difference between OGL and D3D.
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 10, 2007, 04:39:48 pm
If you're not currently using the MediaVP files, that's would be one reason why there's not much difference.  A lot of the enhancements are in the upgraded models and effects, and some of them reportedly don't work at all in D3D mode, and will crash the game.  I don't know what else would prevent the skipping effect.  Try making sure things like AA and AF are off in your drivers, make sure your audio is set to Generic Software, as other settings are known to cause trouble, kill anything else that might be making use of heavy I/O such as file sharing, etc.  If your video drivers are up to date, maybe check things like motherboard chipset drivers, audio drivers, etc, especially IDE drivers.  For a laptop that might be a bit difficult but for a desktop it should be manageable.  Other than that I'm out of ideas.  That's just what I would do if I were running into an issue like that.
Title: Re: Ingame Movies not working in D3D mode
Post by: jr2 on April 11, 2007, 03:40:17 am
Wait a minute... skipping effect, as in audio?  I've got that one, too (on all later FS engines, eg BtRL, FS, WCS, maybe TBP, I'd have to check...)
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 11, 2007, 03:49:10 am
I'm pretty sure he's referring to frame skip on the video of some sort, but it's not farfetched to believe that it could be caused by a bad audio card/driver eating up I/O poorly.  It used to happen with my via chipset until I threw in a Sound Blaster Audigy.
Title: Re: Ingame Movies not working in D3D mode
Post by: jr2 on April 11, 2007, 03:51:34 am
Hmm, that might help... must be a bad driver, though, as a P4 1.8 GHz with on-board audio, 512 MB RAM, and an nVidia GeForce MX440 (I think) can handle it alright...
Title: Re: Ingame Movies not working in D3D mode
Post by: Vretsu on April 11, 2007, 06:14:38 pm
I have the same problem as all the other assorted nuts in this thread.   :shaking:

Duel Core Intel CPU (3.4ghz)
Nvidia 6600 GT 256mb (God's GPU of choice)
Two gigs of RAM
XPSP2 (Stalin's OS of choice)
Huge, highly radioactive, archaic monitor

And my drivers are up to date.
Title: Re: Ingame Movies not working in D3D mode
Post by: chief1983 on April 11, 2007, 06:24:23 pm
Really, don't hate the playa, hate the game.  I doubt it's OpenGL's fault.
Title: Re: Ingame Movies not working in D3D mode
Post by: jr2 on April 12, 2007, 02:09:18 am
Most likely, it's the driver's fault...  Here, if you want to test if OGL works, d'l Tremulous (http://tremulous.net/) or Urban Terror (http://www.urbanterror.net) or Wolfenstein: Enemy Territory (http://www.planetwolfenstein.com/) (all free Q3A mods that use OGL).  I have all three.