Save RAM Wear - Does it?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
slobu
Posts: 275
Joined: Tue Jul 12, 2011 10:58 am

Save RAM Wear - Does it?

Post by slobu »

Does frequent writes/reads of battery backed RAM wear out anything? Use more juice?

Do flash carts suffer any wear from emulated battery RAM access? I mean, they shouldn't immediately write back to flash, right?
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Post by Shiru »

Normal, not emulated battery backed RAM is just a RAM that is battery backed. So it does not wear, just like usual RAM.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

And you can't use Flash to emulate RAM. If a Flash cart supports SRAM, it must have RAM in it.
User avatar
MottZilla
Posts: 2835
Joined: Wed Dec 06, 2006 8:18 pm

Post by MottZilla »

You might be thinking about FeRAM which is used in some EverDrive cartridges for SRAM. FeRAM has a limited number of write cycles (not read cycles) and will wear out. The developer said when monitoring SRAM use he saw games generally don't do things that would wear out the memory that fast.

SRAM is just "Static RAM" which has no limit of reads or writes. Atleast, no more or less than a CPU has a limit of cycles it can execute.

FeRAM and Flash, and EEPROM are types of memory with a finite number of write cycles. Usually the number is high enough that most users won't be affected by the eventual failure.
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Post by Shiru »

I think it is worth to note that despite 'RAM' in the name, FeRAM is non-volatile, so it does not need battery backup.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

MottZilla wrote: The developer said when monitoring SRAM use he saw games generally don't do things that would wear out the memory that fast.
Maybe on the Genesis, but NES games use SRAM as regular RAM quite often.
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

Does frequent writes/reads of battery backed RAM wear out anything? Use more juice?
If by juice you mean current from the battery, frequent writes/reads actually uses less because when the cart is in console and powered on the current comes from the console, not the battery. Note that this isn't significant however because the batteries are not rechargeable.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

In some of the GBA flash cards, the SRAM's "battery" is actually just a big capacitor so that the cart can be power cycled (GBA has no reset button) to write out the contents to flash.
User avatar
MottZilla
Posts: 2835
Joined: Wed Dec 06, 2006 8:18 pm

Post by MottZilla »

tokumaru wrote:
MottZilla wrote: The developer said when monitoring SRAM use he saw games generally don't do things that would wear out the memory that fast.
Maybe on the Genesis, but NES games use SRAM as regular RAM quite often.
Right, I was specifically talking about the EverDrive products for Genesis and SNES. Apparently most SNES games do not make rapid use of SRAM but I think you would expect that with its massive 128K of RAM.
slobu
Posts: 275
Joined: Tue Jul 12, 2011 10:58 am

Post by slobu »

Thanks guys! It sounds like, if I have the luxury, use some real RAM as a buffer and then back it up to save RAM only when needed. I had an idea for a game that would rely heavily on save RAM but wasn't sure about wear.
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

slobu wrote:It sounds like, if I have the luxury, use some real RAM as a buffer and then back it up to save RAM only when needed.
This, except the opposite. There's literally no penalty to using on-cart SRAM, which is real RAM. Without having to double buffer memory your game will be faster and without waiting to flush data to the cart RAM a user has a better chance of their save surviving a random power loss.
Post Reply