Banner
Views: 882,576,299
Time:
25 users online: 4pl8, CalHal, cfpsZoltar, Darkguii, Evil_Abed, Fyord, jardeson01, KAMESUTRA,  Lazy, mateochips, MercuryPenny, Miscalc, ModernKiwi,  NopeContest, Ondore's Lies, Raymondsze, Segment1Zone2, singlepat, stfN1337, SubconsciousEye,  Tahixham, Teaser, The WHG Modz, TheMorganah, Wesleymess1999 - Guests: 114 - Bots: 85 Users: 49,439 (2,429 active)
Latest: Wesleymess1999
Tip: Remember, if you place a moon, midpoint, or Dragon Coin using direct Map16, it will always respawn when you re-enter that sublevel. Use the extended object instead.Not logged in.
Better Optimization
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - Better Optimization
Pages: « 1 » Link
Is there a better way to optimize this?
Code
(10)[f>c]4
$FA $02 $01 (10)4
$FA $02 $00 (10)4
$FA $02 $01 (10)4
$FA $02 $02 (10)4
$FA $02 $01 (10)4
$FA $02 $02 (10)4

$FA $02 $01 (10)4

$FA $02 $00 (10)4
$FA $02 $01 (10)4
$FA $02 $00 (10)4
$FA $02 $01 (10)4
$FA $02 $02 (10)4
$FA $02 $01 (10)4
$FA $02 $02 (10)4

$FA $02 $03 (10)4
$FA $02 $00

Code
(20)[f>c< a+ >c<fg+gg+]2
$FA $02 $01 (20)2
$FA $02 $00 (20)2
$FA $02 $01 (20)2
$FA $02 $02 (20)2
$FA $02 $01 (20)2
$FA $02 $02 (20)2

$FA $02 $01 (20)2

$FA $02 $00 (20)2
$FA $02 $01 (20)2
$FA $02 $00 (20)2
$FA $02 $01 (20)2
$FA $02 $02 (20)2
$FA $02 $01 (20)2
$FA $02 $02 (20)2
>
$FA $02 $00


--------------------
My native language is Chinese, so my English is not good.
Vanilla Mario World v0.02b needs test player!
My poor Touhou skill record
You should double-bracket loop some repeating patterns of the transpositions, like
[[
$FA $02 $01 (10)4
$FA $02 $02 (10)4
]]2
That should reduce the insert size just a bit more.
Looping bigger parts rather than looping small parts.

Thus, the first example can be redone like this:

Code
(1)[
h0 f>c<f>c<f>c<f>c<
h1 f>c<f>c<f>c<f>c<
]2
(2)[
h2 f>c<f>c<f>c<f>c<
h1 f>c<f>c<f>c<f>c<
]
(2)
(1)2
(2)
h2 f>c<f>c<f>c<f>c<
h3 f>c<f>c<f>c<f>c<
h0

As you can see, the insert size will be decreased by $29 bytes.
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - Better Optimization

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks