xenia icon indicating copy to clipboard operation
xenia copied to clipboard

[Kernel] Improvements to MmQueryStatistics

Open Gliniak opened this issue 3 years ago • 1 comments

Summary

  • Fixed incorrect calculation of available pages
  • Changed amount of total virtual bytes
  • Added real amount of reserved virtual bytes

Detailed

  • total_virtual_memory_bytes was taken by some shenanigans directly from console (I taken it from one title, but it seems to be const within titles 🤔 )
  • title.available_pages was probably calculated incorrectly. We forgot to remove pages used by kernel (0x300). On console they're used meanwhile in Xenia they're don't, but still we should be aware of them. (This fixes Prototype 2)

Gliniak avatar May 30 '21 11:05 Gliniak

For unknown (yet) reason. This change causes our favourite wild west/horse simulator and probably some other games to flicker in certain spots, but only with resolution scaling enabled.

Gliniak avatar Aug 15 '22 14:08 Gliniak