Duke3D: Repeated per-map art caching eventually overwrites UI and menu tiles
Putting this here so it's not forgotten about.
Repeatedly loading per-map art of two different maps (example: see attachment) will eventually start overriding other tile data. What I observed is that it overwrote data of the menu and UI tiles, including the crosshair. Here's a screenshot of the bug in action: https://imgur.com/YqwDVQg
Here's the test case to reproduce this: mapart_swaplevel.zip
Simply load E1L1 and hit alt fire repeatedly to switch levels. Eventually you will notice the crosshair having been overwritten. The following is the output of cacheinfo after this occurred: cacheinfo_out.txt
No particular revision where this started, in fact this used to crash the game instead due to running out of cache entries.