Today, I implemented the ephemeral rendering plane idea that I had yesterday. The converted planes (level selection rectangle, paste preview, tileset selection rectangle, and tile crosshairs) no longer store their image; they re-render it every time. Since the main renderer doesn't have access to their individual bitmaps, it passes most of the rendering environment to the EphemeralRender routine. These planes' classes are now responsible for handling their own zoom level and offset.
I did notice some speed improvements, and I'm fairly certain memory usage has been decreased. (In fact, it should have theoretically gone down 25%).
I also added a tiny feature to the Palette Copier: it hides the selected-tile crosshairs while it is active. This makes the selection a little nicer visually, and it removes clutter - the single "selected tile" doesn't matter much when you're selecting a whole swath of them.
No comments:
Post a Comment