04-14-07 - 1

I wrote a while ago that Layered Windows under MS Windoze are very slow. Well, like a retard I didn't actually do the profiling and it turns out I'm totally wrong. Layered Windows are in fact nice and speedy, and you can have at least one full-screen alpha-blended windows at 60 fps. What *IS* slow is pretty much any GDI function call, in particular GetPixel & SetPixel are just insanely slow. Fortunately it's really easy to just get your DIB bits as a DWORD RGBA array and do all your own drawing on that in-memory bitmap, then you just UpdateLayeredWindow and speed away.

No comments:

old rants