Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- =========
- RUPEE LAG
- =========
- Having 09X rupees loses on lag vs having 10X rupees.
- If you add the hundreds and the tens together, you get the amount of extra work needed to display your rupees.. Example: 115 would be 1 + 1 = 2, and 092 would be 0 + 9 = 9.
- To avoid getting <100 after paying for Tempered Sword, you'd want 114 enter aga tower, or grab rupees somewhere else.
- However, having 114 entering aga tower might cause slight lag until you get tempered (see table below).
- Only guaranteed rupee grab post-tempered is 1 rupee before entering Mire basement.
- Time lost vs Godtas
- -------------------
- Godtas had 100+ rupees from post-tempered. Tested against having 099.
- From Tempered to Triforce: 51f
- Note that Jadin picked up a red rupee in Pokey 1, giving him 121 rupees, so the difference could be even higher.
- Rupee routes & difference in # of loops:
- ----------------------------------------
- /---------------------------------------------------\
- | tree | aga | pod | 300 | temp | 300 | flip | mire |
- |------+-----+-----+-----+------+-----+------+------|
- | 104 | 110 | 000 | 300 | 290 | 590 | 090 | 091 |
- | 114 | 120 | 010 | 310 | 300 | 600 | 100 | 101 |
- |------+-----+-----+-----+------+-----+------+------|
- | -1 | -1 | -1 | -1 | 8 | 8 | 8 | 8 |
- \---------------------------------------------------/
- =========
- SHIELD LAG
- ==========
- Not having shield saves time due to not having to draw it.
- One place to get it removed would be the Pikit outside of Ice Palace.
- Costs about 2s for first attempt, 4.5s for two attempts.
- There's 2 Pikit's around Swamp Palace too..
- Time saved vs Godtas
- --------------------
- From Outside Ice Palace (after killing Khold) to Triforce: 139f
- About 105f of those were in the Swamp segment alone.. Not sure why.
- =========
- HEART LAG
- =========
- Having less hearts saves time due to having less things to draw.
- This attempts to compare normal Godtas with Godtas that picked up sanctuary heart, to see how much
- you lose to lag by picking it up.
- Time lost vs Godtas
- -------------------
- --
- Godtas does not grab sanctuary. Tested against having +1 hp and hp container for all frames.
- From Sanctuary to Triforce: 65f
- --]]
- local SAVE = savestate.create()
- local SUM_NORMAL = 0
- local SUM_TEST = 0
- local function draw()
- gui.text(10, 40, tostring(SUM_NORMAL) .. " vs " .. tostring(SUM_TEST))
- gui.text(10, 52, tostring(SUM_TEST - SUM_NORMAL))
- end
- emu.registerbefore(draw)
- while true do
- local lag_before = emu.lagcount()
- savestate.save(SAVE)
- -- Frameadvance TEST
- -- RUPEE
- -- memory.writeword(0x7EF360, 99)
- -- memory.writeword(0x7EF362, 99)
- -- SHIELD
- -- memory.writebyte(0x7EF35A, 0)
- -- HEART
- memory.writebyte(0x7EF36C, memory.readbyteunsigned(0x7EF36C) + 8)
- memory.writebyte(0x7EF36D, memory.readbyteunsigned(0x7EF36D) + 8)
- snes9x.frameadvance()
- snes9x.frameadvance()
- snes9x.frameadvance()
- SUM_TEST = SUM_TEST + (emu.lagcount() - lag_before)
- -- Frameadvance NORMAL
- savestate.load(SAVE)
- snes9x.frameadvance()
- snes9x.frameadvance()
- snes9x.frameadvance()
- SUM_NORMAL = SUM_NORMAL + (emu.lagcount() - lag_before)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement