|Requires Free Space:||No|
|Description:||The spotlight sprite is one of the most demanding sprites in SMW, being so performance intensive that the devs had to update it every 4 frames just to minimize slowdown, even when the spotlight is off. In addition, for no real reason, this sprite uses $001472-$001486 as scratch RAM even though all of those could easily just be $00-$0F and/or sprite RAM tables. While the SA-1 patch helps a lot, it doesn't change the fact that the spotlight's code is trash.
This patch significantly improves the performance of the spotlight by not just optimizing the HDMA buffer loop, but also by only updating the even/odd scanlines on a given frame. The result is the spotlight now has ~40% of the performance impact it originally had (~95-99% when the spotlight is off), to the point where non-SA-1 ROMs can update it at 60FPS without costing an arm and a leg's worth of CPU time. The only tradeoff being a negligible difference in the spotlight window's appearance and the fact it takes an extra frame to fully turn on/off.
In addition, this patch includes a define that makes the spotlight use the on/off switch rather than the light switch sprite, since sprite C8 has no reason to exist and just wastes more processing time when its on screen.
Requires no freespace.
Note: The below .gifs were recorded on an otherwise clean SMW ROM with only BMF54123's CPU meter patch applied to it. No Lunar Magic hijacks, no SA-1, and no FastROM.
|Comments:||6 (jump to comments)|
Download 1.97 KiB | 105 downloads