we're experiencing stuttering in our D3D game. With stuttering, I mean that the game loop will generally take 20-30 milliseconds to complete, running smoothly at ~30 fps. But then, like once per second or so, the game loop will take like 150 milliseonds or more to complete.
The stuttering happens on many different computers so I don't think it's a driver/hardware/setup problem, but rather something that we're doing in our rendering that's causing the stuttering. Many other games run fine on these computers.
I've profiled parts of the code.. and usually the huge delays come from D3D Present() method or the actual rendering. Does this indicate that there's a problem with the rendering command queue being filled up and stalled or something
Are there any known common mistakes one can make in D3D code that will cause the application to stutter like this, once every 20-30 frames or so It seems like there should be a simple remedy for this, since the framerate is generally quite decent - it's just that the application seems to halt occasionally.
I know that a few other games have had problems like these, namely U1, UT2003, DDO.. and probably some others.
Ideas