jwatte's blog

jwatte's picture

The onward march of complexity (LRBni)

It used to be, a microprocessor was simple. It had instructions like "Load the accumulator from the address stored in the X register (LDA(X))." Or "Add register B to register A (ADD B, A)." And that was pretty much it. Time marched on, and we got more esoteric instructions, like "load effective address of scaled register indirect with offset" (LEA eax, [ebx*8+ecx]).

jwatte's picture

Bad font antialiasing in WPF menu items

I'm using WPF 3.5, Visual Studio 2008 SP1, and developing for Windows XP SP3.

No matter what I do, the menu bar and menu items of my application are ugly, blurry, anti-aliased. WinForms, MFC and Win32 applications however have nice, crisp, clear menu items.

I've tried checking the "align to device pixels" box, but it only gives a marginal improvement.

jwatte's picture

XNA, light mapping, specular

I've been working on a GPU accelerated light map generator for XNA for a little while. I'm using the light map only to tell shadow/light for each surface for each light, and then solving the basic light equation (ambient + diffuse + specular + emissive) per pixel, multiplied by shadow.

jwatte's picture

Can't get custom MFC CSettingsStore to work :-(

I want to implement my own CSettingsStore that stores data in a file in local application data, rather than the registry. (I note that the documentation claims this is a good idea from a security point of view, but I'm doing it for other reasons).

jwatte's picture

Ah, yes, GCC and MSVC... Or, two compiler bugs in two hours.

Why is it that seemingly every week-end project ends up in tears and teeth gnashing over broken tools, instead of sweet progress? Why do computer companies keep cramming useless features into bloatware, instead of just making what they have, actually work?

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

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

It's running on the Xbox, too.

As I've mentioned at times, I sometimes scratch my coding itch by hacking around with Microsoft XNA Game Studio for Visual Studio Pro 2005 (now that's a mouthful!). The cool thing with it is that you can write games that run both on Xbox 360 and regular PCs. Recently, I got a new project up and running on the Xbox, and here's a screen shot.

Syndicate content