Views: 6,698,386 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 03-28-24 05:29 PM
Guest:

0 users reading A question involving MelonDS' performance during savefile writing | 1 bot

Main - General - A question involving MelonDS' performance during savefile writing Hide post layouts | New reply


Lunos
Posted on 12-24-20 12:38 AM (rev. 2 of 12-24-20 12:39 AM) Link | #3012
Sup.
I have a quick question to ask and I didn't really know where should I ask it, so I decided to drop it in this part of the forum.

Say, why is it that emulators like Desmume and MelonDS seem to get laggy during the process of writing data to a savefile?
It's something I've been curious about ever since I noticed, but I didn't really have a place to ask about it.
Since this forum exists, the matter involves MelonDS and I'm kinda curious about it to this day, I thought it would be a good chance to satiate my curiosity.

Here's a quick comparison about savefile writing speeds in NO$GBA, Desmume and MelonDS on my computer.
NO$GBA: https://streamable.com/lya7mv
MelonDS: https://streamable.com/gwq6yh
Desmume: https://streamable.com/o7p7wd

My personal guess as a non-programmer, going purely from what I heard throughout my years on the internet, is that NO$GBA has an advantage in speed over MelonDS and Desmume due to being written in Assembly. Could that be the main reason why it doesn't seem to lag much when writing to a savefile?

In any case, thanks in advance for reading!

Arisotura
Posted on 12-24-20 12:43 AM Link | #3013
I think it's more like how NO$GBA handles writing the save data back to the HDD. melonDS was programmed to do that after each block write. this has been addressed, the new faster saving will be in the next release.

____________________
Kuribo64

Lunos
Posted on 12-24-20 01:52 AM Link | #3015
Posted by Arisotura
I think it's more like how NO$GBA handles writing the save data back to the HDD. melonDS was programmed to do that after each block write. this has been addressed, the new faster saving will be in the next release.

Oh, I see. I didn't even expect this to have been addressed already, honestly. That's super cool!
Thanks for the reply!

Lunos
Posted on 12-26-20 05:16 PM (rev. 3 of 12-26-20 05:21 PM) Link | #3025
Posted by Arisotura
I think it's more like how NO$GBA handles writing the save data back to the HDD. melonDS was programmed to do that after each block write. this has been addressed, the new faster saving will be in the next release.

Say, by "next release", did you mean the next major release or was it v0.9.1?
Because I'm still noticing the game lagging during saving.
https://streamable.com/ziv8ye

I'm not sure if this is worth opening a GitHub issue, so I decided to ask here before doing anything. Also, kinda late merry christmas and congratulations on another release! Cheers ^^!

Generic aka RSDuck
Posted on 12-26-20 05:43 PM (rev. 2 of 12-26-20 05:43 PM) Link | #3026
the change we made only mitigated it for some games. The saving is still performed synchronously, that means melonDS waits until all the changes have been flushed to hard drive. We have plans to improve this in the future.

____________________
Take me to your heart / never let me go!

"clearly you need to mow more lawns and buy a better pc" - Hydr8gon


Main - General - A question involving MelonDS' performance during savefile writing Hide post layouts | New reply

Page rendered in 0.044 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 83/83, time: 0.035 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.