5 users online: Caquetoose, Heitor Porfirio, lubsy, lugueta, MrChompinkski - Guests: 94 - Bots: 227
Users: 66,482 (2,357 active)
Latest user: ItsduhToki

Fixed Color Data NMI Optimizer

SMW Patches → Fixed Color Data NMI Optimizer

Submission Details

Name: Fixed Color Data NMI Optimizer
Author: Ladida
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 | 637 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.