Language…
8 users online: Chambo, DentalFloss, Dispace, drkrdnk, Manofer, Maxx, PopCorn181, Zavok - Guests: 932 - Bots: 152
Users: 70,460 (2,476 active)
Latest user: Makwa

Fixed Color Data NMI Optimizer

SMW Patches → Fixed Color Data NMI Optimizer

Submission Details

Name: Fixed Color Data NMI Optimizer
Author: Ladida
Added:
Version History: View
Tool: Asar
Requires Free Space: No
Bug Fix: No
Featured: Yes
Description: tldr: gives some more time during NMI, no freespace/ram needed

the routine at $00AE47 converts the background color so that it can be stored to the fixed color data register ($2132). unfortunately, the routine is lengthy, using loops and tables and indexes and watnot. this patch shortens the routine by both cycle count (old: 244 cycles | new: 59 cycles) and byte count (3 free bytes at end) by means of clever and extreme haxage.

included is a text file that shows just how long my routine takes, and how long the old one took.



i originally developed the routine for my homebrew but adapted it for smw
Tags: color lorom optimize sa-1 v-blank
Comments: 2 (jump to comments)
Download 1.60 KiB | 720 downloads

Comments (2)

 Telinc1 Link
To expand the description: this patch saves almost 190 cycles in NMI, which is more than a scanline of processing. The code is very clever and certainly useful, so having SA-1 support is appreciated. Good job!
 MarioFanGamer Link
Added SA-1 support and sa-1 tag.