It is very strange because you would think the sleep mode should "just work" and the app should not have to do anything at all.
You'd be surprised to know how tricky it is to program a "lossless sleep" function for an emulator, probably more so on RetroArch in particular. Since the Vita is unable to cache an entire CD-system's game in the RAM since they exceed the limits of the system (Only half a gig, a FRACTION of even Android devices) and is instead simply reading the files as it streams through the emulated image, currently sleep is "normal"; in that it hasn't been optimized whatsoever to account for the Vita basically "unmounting" the disc in sleep, unlike a ROM-based system where, no matter how big, it still can be cached in its entirety in the system since they are so small and is how ROM files work in the first place. This behavior is nothing new; it's been seen ever since Genesis GX's SegaCD functionality was confirmed working, where suspend and sleep modes cause the emulated disc to eject for whatever reason.
In fact, I've seen this as far back as the PSP: NJEMU's CPS2PSP was a culprit of file corruption when using the PSP Go's "Pause Game" function (Basically a predecessor to modern "suspend"), so "Pausing" and returning to the game led to garbled sprites, since the PSP ports relied so much on pre-cached files.
It probably hasn't been implemented since RetroArch was never fully optimized for this behavior, and I'm pretty sure some Windows programs exhibit this too (If I were to use my Win to test, with it being a handheld and all). Theoretically, it's a simple fix: Pause the game, and immediately "mount" the disc when the system returns to RA, this way the game won't go spastic when it finds out it was ejected. But, I'm no programmer so I can't say how hard this is to actually implement.
What platforms are supported for Retro Achievements with lib-retro cores?
NES, SMS(?), PC Engine, Genesis, SNES, and GB(C/A) are supported in the RetroAchievements APIs. Though, don't quote me on it working on RA because I haven't been able to earn any in my current addiction (EarthBound), but then again, it was activated near the
end of the game so
nyeh.
Course, ya need an account and make sure the credentials are right on the ball and are logged off of the website before logging on RA, since I haven't seen the overlay make any status changes whether it's successful or not, and you'll need to maintain a connection (I think, though I may be wrong). Some cores have compatibility issues too, so it's not complete,
but the list is here for those who are interested.
I saw many videos of GDP Win, and i cant believe it. I have so many questions; can i ask to you?
ASK AWAY. Though perhaps remaining public would be off-topic; unless others don't mind this.