• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
porters

FPS very low after system upgrade

8 posts in this topic

Hi all,

I recently upgraded my PC which included a new SSD, CPU, graphics card (Nvidia GTX570). I also did a fresh install of Windows7 and Visual Studio 2010.

After i upgraded my PC, i continued working on a SlimDX based application i'm working on in VS2010. I've noticed that the FPS of my rendered scences is horrific now (around 10FPS), whereas the exact same code prior to upgrade was running my application at around 90FPS.

My previous graphics card was a GTX470.

The FPS seems to drop dramatically when rendering polys using hardware instancing. I'm using shader model 3.

Any idea what is going on? Any help would be much appreciated.

Regards,

Aaron
0

Share this post


Link to post
Share on other sites
Hi,

It can be your video card drivers are outdated. Also check in your ouput window if the shader is throwing out warnings or errors
1

Share this post


Link to post
Share on other sites
[sup]Hi Sneezy,[/sup]
[sup]Drivers are already up to date. [/sup][sup]I should mention that the same code works fine on my work PC, which runs a NVIDIA Quadro FX 1800. It is only my home PC (the one i upgraded) where i am experiencing this issue.[/sup]

[sup]I had noticed that i was getting a lot of warnings from Direct3D9. This is the warning i am getting "Direct3D9: (Warn): Ignoring redundant SetSamplerState Sampler: 0, State:##". This is occuring numerours times per frame. I did notice this before, so i set directX to retail mode, which helped a lot on my work PC, but has no effect on my home PC.[/sup]
[sup]I'm curious about this warning. Is it referring to shader variables that are being set? I dont understand why it would have such a dramatic effect on my home PC, but no effect on my work PC, if this is the problem at all.[/sup]
0

Share this post


Link to post
Share on other sites
The redundant state warning can be safely ignored - it's just the debug runtime telling you that it's filtering out a redundant state change, but it won't have any impact (not measurable anyway, unless you're doing 10s of 1000s of these per frame).

Have you checked your power saving settings? If you're going into a power-saving mode all the time, or you're forced into one through control panel settings, this kind of perf drop off can happen. You need to check both your Windows control panel and your gfx card control panel here.
1

Share this post


Link to post
Share on other sites
Switching D3D between debug and retail modes usually has a noticeable performance change. Double check the debug output in Visual Studio to see if you actually load D3D9.dll or D3D9d.dll (the extra 'd' means debug).

Make sure your motherboard drivers are up to date.

If that doesn't help, you could also try some experiments to identify the issue:

1. Make sure you aren't doing something weird with the settings you pick, for example if you always pick the best quality antialiasing that might be both better looking and slower on newer hardware. Also make sure you're not using a debug build!
2. Swap the graphics card back to the 470. Does that make any difference?
3. Get hold of PerfHUD and try to find out where the bottleneck is. Is it the CPU or GPU for example?
1

Share this post


Link to post
Share on other sites
I don't think either the debug runtimes or a debug build will have that level of performance impact. I'm suspecting that the info about hardware instancing is not really too relevant here either; it's symptomatic for sure but the cause is not directly connected.

A thought - also check that you're definitely getting D3DCREATE_HARDWARE_VERTEXPROCESSING.
0

Share this post


Link to post
Share on other sites
Thanks for the suggestions guys. Will have to wait a few more hours before im home to try some of these solutions, but i can answer a few questions now.

@mhagain - I'll check power saving settings when im home. I only get this problem specifically when im using hardware instancing, otherwise framerate is fine, or perhaps what im drawing outside of the intancing cases isnt intensive enough for me to notice an issue. I have already tried specifically creating the device with HARDWARE_VERTEXPROCESSING as i thought that might be an issue as well. I can confirm that the device is successfully created with these flags, so i can only assume this isnt the problem.

@Adam_42 :
1. I've tried completely disabling antialiasing to no effect. When you say "Make sure you are not using a debug build", what do you mean exactly? Do you mean make sure i have set the DirectX Control Panel settings to use the retail version rather than debug? If so i can confirm i have set this to the retail version.
2. I can't swap the graphics card back as the reason i upgraded my hardware is the GTX470 died and needed to be replaced. I shouldnt need to do this anyway because, as i mentioned, my application runs fine on my work PC with the exact same code.
3. I'll download PerfHUD when im home and see what that tells me.

The only things i can think of that may be causing problems are:
1. Something to do with Windows or VS2010 settings (i performed a fresh install of both so any previous settings i had would have been wiped).
2. DirectX9 or Graphics card settings.
2. Graphics card struggling with DirectX9 / Shader Model 3.0 for some reason?
0

Share this post


Link to post
Share on other sites
When I said debug build I thought the compiler settings could be making you CPU bound, but that seems highly unlikely if you can toggle instancing on and off and see a speed difference.

The reason I suggested trying the 470 out, was as a quick way to find out it it was the new graphics card causing the issues, or something else going on with the new PC.

I'd also suggest considering a fourth option - there's a bug in the code that's only showing up on the new PC. If the instancing code and vertex shader isn't too huge it might be worth posting it here.
0

Share this post


Link to post
Share on other sites
Ok guys problem solved. I performed a clean install the lastest Nvidia drivers for my card and its running fine now. Perhaps there were remnants of the old driver causing problems.

Thanks guys for help. Much appreciated.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0