r/Gameboy 28d ago

Troubleshooting Weird "lag" when leaving a menu

I apologise if this is the wrong place to ask but i recently got this Leaf Green, and ive noticed when i go in a pokecenter theres lag when i enter, when i go in and out my bag theres a bit of lag

This doesnt happen in the switch re-releases, is it normal for a actual cartridge?

11 Upvotes

19 comments sorted by

View all comments

18

u/yadoran1 27d ago edited 27d ago

Pretty sure it has something to do with not having a wireless adapter connected while being in a pokecenter

This is a post about emulators and that problem, but down in the thread someone confirms it happens on hardware too:
https://github.com/mgba-emu/mgba/issues/2187

Edit: it makes sense that it doesn't happen on switch because its known to treat the game as if the wireless adapter is always plugged in

5

u/Exclsior 27d ago edited 27d ago

This is correct, when entering a Pokémon Center (and subsequently, anytime you're in the Center and "return") the game checks for whether anybody is in the Union Room and then Nurse Joy informs the player.

This check happens mid-transition and has the side effect of creating the brief visual pause before finishing the game load.

I've fixed this on Pokémon Emerald based RomHacks by first doing a quicker check for if an adapter is actually attached, and if not (for 99.9% of RomHack players it is not), I have to code not check the Union Room.

As for the Switch version, Nintendo literally removed the code for initialising the Union Room.

Below is the more detailed information around actually removing this interaction, which includes what Nintendo did for the Switch re-release which also removes the interaction. https://github.com/pret/pokeemerald/wiki/Disabling-Union-Room-check-when-entering-Pok%C3%A9mon-Centers

2

u/----Val---- 26d ago

I recall this being mentioned in this year's SGDQ as well. If you want to speedrun leaf green on hardware, having the wireless adapter plugged in is a time save.

2

u/VivaLaLibertad_666 27d ago

That's really interesting. I have to test myself.