Archived

This topic is now archived and is closed to further replies.

DirectX, Windows XP, Nvidia

This topic is 5837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a program that runs at a nice clean 70 fps using DirectX 8 under windows 98. I recently switched to windows XP and my framerate has taken a serious dump. (8 fps) I have the same hardware I did under windows 98. My video card is an Nvidia GeForce2 MX-400. I''ve reinstalled my drivers, recompiled my code under XP, checked the creation of my D3DDevice (still HAL), and DXDIAG says hardware acceleration is enabled. Any ideas?? This is getting frustrating. --Ravenshadow

Share this post


Link to post
Share on other sites
When you say, you reinstalled your drivers, do you mean you installed your old drivers (for 98) or downloaded the newest, XP drivers off the net? Do 3d games run any slower, or is it just your code? If it is just your code, I would guess it would be that its using software emulation for some reason, if it is all 3d software, probably a driver issue.

Share this post


Link to post
Share on other sites
The nvidia drivers that comes with XP are SLOW.. But you said you reinstalled them?

Anyway what drivers are you runing with?

Dont use the newest driver, I have read that it should be realy slow under XP, current the most stable driver is 12.90.

but 21.83 / 21.85 should be a little faster (also stable)

(As far as I know )

Share this post


Link to post
Share on other sites
quote:
Original post by Ravenshadow
I have a program that runs at a nice clean 70 fps using
DirectX 8 under windows 98. I recently switched to windows XP
and my framerate has taken a serious dump. (8 fps)

I have the same hardware I did under windows 98. My video card
is an Nvidia GeForce2 MX-400. I''ve reinstalled my drivers,
recompiled my code under XP, checked the creation of my D3DDevice (still HAL), and DXDIAG says hardware acceleration
is enabled.

Any ideas?? This is getting frustrating.

--Ravenshadow


Point your browser to www.nvidia.com and donwload the latest XP drivers. If that doesn''t work, I don''t know... BTW, 98 and XP are extremely different, don''t try to use Win98 Drivers on an NT core, the system will crash like crazy if you do so..



"And that''s the bottom line cause I said so!"

** I WANT TO BE THE MODERATOR FOR THE LINUX FORUM **

Cyberdrek

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" -- Kramer
/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash

Share this post


Link to post
Share on other sites
If you have a compiled exe, and it not to big, and you have a place I can download it. I can try it on a P3-666, with a Geforce2 to see if it's a XP problem? (Also have a P3-1ghz, with a geforce3 (win2k throu..))

Edited by - snorga on December 17, 2001 4:18:15 PM

Share this post


Link to post
Share on other sites
Heres the executable:

http://www.cs.nmsu.edu/~dreeves/archive/mars_win.zip

the FPS is listed in the upper left corner.
left, right, up, and down, rshift, lcontrol move the camera
enter stops the camera, F1, F2, F3, F4 control pitch and yaw.

--Ravenshadow

Share this post


Link to post
Share on other sites
I am running the same config, and i have been analysing this effect for the past...1.5, maybe 2 weeks. Heres what ive found:
It definitely has to do with WinXP drivers.
It occurs on NVidia chipsets, typically GeForce2 cards.
It only occurs with D3D8, not OpenGL.

There are no really decent drivers for the thing. The drivers just dont ''like'' dx8.1 + WinXP. You could download the Win2K drivers for your card, that usually helps.

My advice, backup you''re data and revert to Win98 until decent drivers are released.

-----------------------------
The sad thing about artificial intelligence is that it lacks artifice and therefore intelligence.

Share this post


Link to post
Share on other sites
Everything Promit says is true. I have been studying the same effect on my system with XP. I must add, though, it''s not just nVidia. Many of the new ATI Radeon cards take a serious performance hit in Windows XP.

My Radeon sinks to 8fps in Diablo II. It runs Unreal Tournament just fine. It doesn''t run Unreal at all in D3D mode. The problems have no rhyme or reason, but Promit''s right. The only link seems to be the cards simply not liking DX 8.1 and WinXP.


----
Herb M. (mdfmKoRn)
s3202@attbi.com

Share this post


Link to post
Share on other sites
The links right. I just tested it.

www.cs.nmsu.edu/~dreeves/archive/mars_win.zip

*sigh*

I was afraid it was gonna be an XP bug. damn it. Its too bad
I like XP. Ah well, I have my system running 98 and XP I guess
I''ll just stick with 98 for development until they fix it.

Thanks for all the help.

--Ravenshadow

Share this post


Link to post
Share on other sites
I''m running XP and DX8.1 with an athlon & geforce2 MX400 and have no significant slowdowns, but I did have before I installed nvidia drivers (21.83) and also AGP drivers for my motherboard. Go into dxdiag and check that AGP acceleration is selected (assuming your card is AGP)!

Share this post


Link to post
Share on other sites
I also run Windows XP with GeForce 2 GTS and the latest official NVidia drivers (23.11).

My own code runs well in this setup (using DX8.1 runtimes & SDK), and all the DirectX games I''ve tried also run well...Maybe a couple percent FPS slower than a comparble Win2000 or 98 setup, but nowhere near a 70fps->8fps drop.


Your program runs very slowly on my system, though...

8 FPS here too.... Are you sure you''re getting a hardware device? The only thing I can think of as to what might be wrong is a subtle bug that is causing you to render in software mode (are you using DX7 or 8.x SDK?)... From a purely visual standpoint, it looks like software mode (the terrain texture looks unfiltered and blocky, what settings are you using for it?).

Share this post


Link to post
Share on other sites
Odd, I ran your little proggie and it maintained a solid 77 fps, sometimes more. Perhaps you''re doing something in your program that nVidia cards don''t support in hardware. Of course, this wouldn''t explian why it works in 98. Hmph.

I''m running WinXP with an ATI Radeon.


----
Herb M. (mdfmKoRn)
s3202@attbi.com

Share this post


Link to post
Share on other sites
Yeah, I get the same problem under XP (the black screen thing)
when I use old NVidia drivers. The Detonator drivers work better
but I still get the crappy FPS thing. I need to try it on a
non NVidia card. Reports are that it runs fine on an ATI Radeon.

hmmmmm....

I''m gettin'' a hardware device when the device is created
(i.e. D3DDEVICETYPE_HAL, not a HEL or REF) I''ve tried cutting
the drawing code out of the render loop and it still runs poorly.
*grumble*

Stupid NVidia/XP

--Ravenshadow

Share this post


Link to post
Share on other sites
21.83 = old driver?

btw: The link work fine today, guess my DNS-server didnt knew the adresse.. ?

Maybe you are initializing DX8 wrong?
You should not get that losy preformence/black screen?

btw: It was on a Win2k I got the black screeen..

You get slow preformence when not even drawing anything???

Share this post


Link to post
Share on other sites
The problem is more than just NVidia/XP.

My code runs fine under my current config (GF2, XP, AMD1.2ghz), every D3D game I''ve played on this setup works fine too. I''ve only seen the extremely slow performance on the demo you posted.

Just because it runs OK under ATI cards doesn''t mean it isn''t a bug in the code. There''s probably something in the init routines that is doing something non-standard or bugged and the ATI driver simply ignores it, but it trips up the NVidia driver.

If you want to send me the code to your project, I''ll take a look at what might be happening and try to assist you in fixing it. Other than that, I''m afraid I can''t really offer any help other than to tell you to recheck all of your init routines -- insert printfs and asserts or step through it in the debugger and make sure everything really is going the way you assume.

Share this post


Link to post
Share on other sites
I had the same problem as well. I recently switched to XP and I noticed my framerate dropping to like 20 when my games usually run at 150+ fps.

I was having this problem even after installing the new DetonatorXP drivers, but after installing the Win2k/XP refresh rate patch, the framerates actually ROSE from what I had in WinME.

Share this post


Link to post
Share on other sites