jwatte's picture

More PIX for Windows problems. This time, I think it's NVIDIA's fault.

It seems to me as if PIX for Windows, and its integration with the NVIDIA device drivers, has just gone downhill during the last year or so. I have a single project, which can demonstrate bugs both in the latest NVIDIA graphics drivers, and in the PIX tool itself.

jwatte's picture

Rigid Body Physics in C#

Let's assume you're trying to simulate a car driving on an uneven terrain (perhaps some sort of heightmap). Let's assume you know how to measure the distance from the car's chassis to the heightmap ground at any position (typically, measure the height of the heightmap, and subtract the height of the car at that point in the XZ plane).

jwatte's picture

Profiling an XNA game on Xbox

This code file implements a simple profiler for XNA games that run on the Xbox.
It allows you to measure the amount of time spent in different parts of your code,
and bins the different durations into statistics bins (so you can see if it's
"spiky" or even).

jwatte's picture

HTTP-GET source code download

If you've ever wanted to read web pages into your C or C++ program, then this code is for you. It's the smallest possible code that will let you read arbitrary web URLs into your own program. It does NOT have any kind of interesting features, and is not coded to be fully standards compliant, but:

  • it comes with source
  • it's very small
  • it works
jwatte's picture

Myths and realities related to high-quality digital audio formats

On competent recordings of normal program material, with excellent equipment, nobody has shown that they can consistently tell the difference between redbook (regular CD audio, at 44.1 kHz sampling rate and 16 bit word depth) and higher-rate/wider audio formats.

jwatte's picture

A really rough week-end (bugs in HLSL, XNA and PIX for Windows)

I had a rough week-end. Well, no, no laid-off engineer entered our offices and shot people dead, and my house didn't burn down, but still.

jwatte's picture

Marshalling (serializing data) in C++ using auto-generated headers

This package provides simple generation of headers and source for marshalling binary data between C++ structs and byte streams. The nice thing about it is that you can easily extend the system to support generating property sheets, or going to/from XML, or one of a number of other things you want to do to data structures. You do so by just adding new visitor classes, without having to change the data structure code.

jwatte's picture

Safe Save for file data

Sometimes, you may find that you're trying to re-write an existing file, but if you write less data than was in the file originally, there will be old data left over at the end of the file. However, this shows a bigger problem with your file handling.

You should generally not re-write the same file in place. Instead, use a "safe save," where you do the following:

jwatte's picture

Alternatives to inheritance when creating game classes

There is inheritance, there is interface, and there is configuration. Inheritance (of a base class) is seldom the best or most efficient choice. Sometimes, newbies read the wrong tutorials, and start down the rabbit hole of class inheritance, but in the end, that turns out to be a dead end.

Syndicate content