Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change NvMap ID allocation to match nvservices #3741

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

gdkchan
Copy link
Member

@gdkchan gdkchan commented Oct 5, 2022

This changes the NvMap ID allocation to match what the official service does. The official service uses an ever incrementing ID (which seems very odd to me, since it eventually can overflow, but it would probably take long enough to happen that no one will experience it in practice unless they leave a game running for months/years and it constantly create nvmaps). It also increments the ID by 4 rather than 1 which is also weird (and would make it overflow even faster...)

This fixes a random crash that could happen when starting a new game on Animal Crossing: New Horizons. A similar issue on other titles might be also fixed.

Testing is welcome.

@gdkchan gdkchan added fix Fix something service:nv Related to the nvidia module (Ryujinx.HLE.HOS.Services.Nv) labels Oct 5, 2022
@gdkchan gdkchan requested a review from marysaka October 5, 2022 17:06
@MutantAura
Copy link
Collaborator

Seems to also resolve the random crashes exhibited in Breath of the Wild.
Horse auto-riding for over an hour and nothing yet:
image

@Leischii
Copy link

Leischii commented Oct 5, 2022

Fixes the following things in Animal Crossing New Horizons:

  • All crashes! All previous ways of forcing a crash don't work anymore even after multiple attemps
  • All texture corruptions.

TLDR: This fixes afaik every single bug left in the game. This is just amazing <3

@MetrosexualGarbodor
Copy link
Collaborator

After playing 40 mind-numbing minutes of Pokémon Sword and going through pokecenter doors for 5 of them, it's possible this might have fixed random crashes in Sword/Shield as well. Here's a Sword save in case anyone is willing to test further.

pkmn sword before entering town crash.zip

@riperiperi
Copy link
Member

I can confirm that all of these are now fixed for me too. Excellent sleuthing!

@gdkchan gdkchan merged commit 599d485 into Ryujinx:master Oct 5, 2022
@gdkchan gdkchan deleted the nvmap-id-alloc branch October 5, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something service:nv Related to the nvidia module (Ryujinx.HLE.HOS.Services.Nv)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants