So, in OpenApoc, I was loading my menu GUI from XML, and rendering it to the screen. I got really confused why when loading from the XML it ran really slowly and jerky, but when I manually constructed the UI, it was smooth.
Anyway, long story short, it was because I threaded the load of the XML (which included the bitmap).
Now, when you try and draw with a bitmap loaded in a different thread, it takes a lot longer to render (I assume it's something to do with handing references between threads)
How can I go about threading my load, but without the overhead when it comes to rendering?