Summer C3 2020 begins in:
Views: 836,321,954
20 users online: 8Nairb, Bernardo, CalHal, Counterfeit, Dan2point5, Darkbloom, Fire master, HD_DankBaron, JP 14, Koop the Koopa, Luigiman941, MegaSonic1999, PokerFace, princess1234, segredo, Superdjsteve54,  Telinc1, TheBiob, tjb0607, toad64 - Guests: 43 - Bots: 268 Users: 45,628 (3,268 active)
Latest: ModBot
Tip: Don't place Yoshi coins near a goal post because they keep glowing when a level fades out.Not logged in.
Details for Fixed Color Data NMI Optimizer
SMW Patches - Fixed Color Data NMI Optimizer Show random
File Name: Fixed Color Data NMI Optimizer
Version History: View
Authors: Ladida
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
Download: Download - 1.60 KiB
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!
Posted by:  Telinc1 - | Link
Added SA-1 support and sa-1 tag.
Posted by:  MarioFanGamer - | Link

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy