pickle Wrote:The skin was more of a proof-of-concept idea than anything. I wanted a quick minimal skin that was basically just text, but would look legible on any background.
I fully realize that you consider 9 stacked text layers obscene. I thought that might be the case, but I wasn't sure. Consider it a stress test
Optimized! I've now optimized this to a point where it *may* use sometimes 1% of the CPU but mostly it sticks around 0. The problem was that because each of the text layers was slightly offset, it was generating a new dirty rectangle, and for each rectangle, it was drawing each of the text layers again as each of them had parts in that dirty rectangle.
Basically this ended up redrawing about 81 times! (9 layers of text, each with their own dirty rectangle!). I've always known that the overdraw caused by the dirty rectangles was a slow point but didn't have the time to fix it.
You'll be happy to know that your skin now only draws with 1 dirty rectangle after Xion applies a bunch of optimizations in order to completely remove any overdraw!
I also optimized the Text drawing so that the font is created once instead of every frame as it used to be.
You will be able to test this out in build 65.
Other users may notice speed improvements on their systems as well, most likely you will notice improvements on older systems, rather than newer systems.
Cliff