Making your SD card less prone to lock-ups (GDemu).

Moderators: pcwzrd13, deluxux, VasiliyRS

mkandersson1082
MegaDeath
Posts: 217
Contact:

Making your SD card less prone to lock-ups (GDemu).

Post#1 » Mon Jan 17, 2022 7:08 am

Recently I got to thinking about how certain Atomiswave games still freeze after a while and came to the conclusion that maybe data is being pushed into RAM too rapidly. With that I thought I'd try tinkering with the file system in the Ubuntu terminal.
I limited the number of usable blocks on a 16GB SanDisk SDHC so that only 3GB of storage is available -- just enough to store the whole collection of ports. Also, I reduced the cluster size of the Fat32 partition to 512Bytes instead of 32KB, in-turn forcing longer seek times for processing data - slowing the SD card performance. So far I've had NGBC running in attract mode for over 2 hours instead of the usual 20-25 minutes and it hasn't locked up yet.

This is the command I used in the Ubuntu terminal:

sudo mkdosfs -s 1 -S 512 /dev/mmcblk0p1 3221225

(mmcblk0p1 being the SD card).

mkandersson1082
MegaDeath
Posts: 217
Contact:

Re: Making your SD card less prone to lock-ups (GDemu).

Post#2 » Mon Jan 17, 2022 7:35 am

I tested out a few of the other ports earlier and it seems like the slightly hindered performance of my SD card hasn't affected gameplay.

mkandersson1082
MegaDeath
Posts: 217
Contact:

Re: Making your SD card less prone to lock-ups (GDemu).

Post#3 » Mon Jan 17, 2022 7:56 am

Almost 4 hours on attract mode presently...I'll do further testing tomorrow.

mkandersson1082
MegaDeath
Posts: 217
Contact:

Re: Making your SD card less prone to lock-ups (GDemu).

Post#4 » Mon Jan 17, 2022 6:24 pm

I left KOF XI & Dolphin Blue on attract mode for a couple of hours and had no issues. Fist of the North Star, however locked up after 45-50 minutes in attract mode. Either way there seems to be an overall improvement using these file system settings.

User avatar
MoeFoh
Uber
Posts: 1036

Re: Making your SD card less prone to lock-ups (GDemu).

Post#5 » Mon Jan 17, 2022 9:00 pm

mkandersson1082 wrote:I left KOF XI & Dolphin Blue on attract mode for a couple of hours and had no issues. Fist of the North Star, however locked up after 45-50 minutes in attract mode. Either way there seems to be an overall improvement using these file system settings.


Wondering if you used a defragger to look at file layout?
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski

mkandersson1082
MegaDeath
Posts: 217
Contact:

Re: Making your SD card less prone to lock-ups (GDemu).

Post#6 » Mon Jan 17, 2022 10:00 pm

MoeFoh wrote:
mkandersson1082 wrote:I left KOF XI & Dolphin Blue on attract mode for a couple of hours and had no issues. Fist of the North Star, however locked up after 45-50 minutes in attract mode. Either way there seems to be an overall improvement using these file system settings.


Wondering if you used a defragger to look at file layout?


I haven't so much as looked at a defrag program since switching to Linux several years ago :lol: Anyway, from my experience defragging never made a difference when it came to my modded consoles, but do you think the file layout may also be an issue for Atomiswave ports?

User avatar
MoeFoh
Uber
Posts: 1036

Re: Making your SD card less prone to lock-ups (GDemu).

Post#7 » Mon Jan 17, 2022 10:54 pm

mkandersson1082 wrote:
MoeFoh wrote:
mkandersson1082 wrote:I left KOF XI & Dolphin Blue on attract mode for a couple of hours and had no issues. Fist of the North Star, however locked up after 45-50 minutes in attract mode. Either way there seems to be an overall improvement using these file system settings.


Wondering if you used a defragger to look at file layout?


I haven't so much as looked at a defrag program since switching to Linux several years ago :lol: Anyway, from my experience defragging never made a difference when it came to my modded consoles, but do you think the file layout may also be an issue for Atomiswave ports?


SD Cards are their fastest on sequential reads - meaning track03 & track04 are contiguous. Just the opposite of what you are trying.

I was wondering if the GDEMU uses ECC if it's part of the image - because it's stripped out in the Atomiswave converts. Anybody know?
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski

mkandersson1082
MegaDeath
Posts: 217
Contact:

Re: Making your SD card less prone to lock-ups (GDemu).

Post#8 » Tue Jan 18, 2022 6:14 am

It's interesting how different cluster sizes affect different games. Fist of the North Star prefers the 32KB cluster.

User avatar
MoeFoh
Uber
Posts: 1036

Re: Making your SD card less prone to lock-ups (GDemu).

Post#9 » Tue Jan 18, 2022 10:45 am

mkandersson1082 wrote:It's interesting how different cluster sizes affect different games. Fist of the North Star prefers the 32KB cluster.


I've read that Metal Slug 6 can be particularly speed sensitive.
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski

mkandersson1082
MegaDeath
Posts: 217
Contact:

Re: Making your SD card less prone to lock-ups (GDemu).

Post#10 » Tue Jan 18, 2022 8:03 pm

MoeFoh wrote:
mkandersson1082 wrote:It's interesting how different cluster sizes affect different games. Fist of the North Star prefers the 32KB cluster.


I've read that Metal Slug 6 can be particularly speed sensitive.


I do wonder...would changing the data layout on the ISOs make a difference? Being that smaller cluster sizes provide more 'accurate' reads for some games, while bigger cluster sizes provide more accurate reads for others. This could be a case of a dummy file being beneficial also? Just a thought.

  • Similar Topics
    Replies
    Views
    Last post

Return to “Atomiswave Ports”

Who is online

Users browsing this forum: No registered users