Nope, I'm using the QImage constructor which lets me create a bitmap directly from raw data.creffca said:After your C lib produces the rgbdata do you then iterate through that and setpixel () each pixel of the bitmap, or do you write directly to the bitmap's bits?
Anyway, it's getting even better! I've added LZ decompression to the module. Now it's amazingly fast - 1-1 loads in less than 0.2 seconds. Larger levels like 6-1 take about half a second to load: tilesets are no longer the bottleneck; now it's the rest of the level loading code. Still, I don't really feel the need to optimise it - it's heavily linked with Qt (so it will be more of an issue in C) and it's fast enough now.
There are a few bugs in it (alpha still isn't parsed correctly, LZ is somewhat hosed so there are a bunch of missing pixels in some tilesets) but once I get those fixed it will be pretty awesome.