I'm not sure if it's just me, but it appears that with the latest releases of MAME, state saving is getting more stable. I've been relying on this feature exclusively after high score saving was mercilessly ripped out of MAME, and for a while it seemed that each new release would knock out all my high scores since states simply would not get preserved between releases - something like 90% of them would just not make it. Now, I've run my own little acid test to see how many of my 50+ saved states would make it from .117 to .118, and I found only two games (gunsmoke and major havoc) that didn't make it. With that in mind, I have a few questions for someone who might hazard a guess:
1) Exactly WHY is state saving getting more stable, or at least appearing to? Is it perhaps due to more features being moved away from game-specific drivers and into the core?
2) What is the reason for games to LOSE their state between releases? I'm a little baffled that the two aforementioned games lost state with the .118 release, especially given that there did not appear to be any work on their drivers during the .117-.118 cycle (check MAWS and you'll see what I mean).
3) Could it be just me who is thinking the state system is getting better, or is it just a matter of coincidence? I'm wondering if there could be a brighter future for it in the near future. I love the concept of saving high-scores, and it's especially cool for those of us lucky enough to have real cabinets, but I hate the negative side-effects and hackiness of having them in MAME, so save states could truly be the best of all worlds... so much potential.
Unless/until save states ever reach 100% reliability, I'll continue to spend most of time playing games that save high scores to NVRAM such as the early Williams games, centipede and crystal castles. Those seem to be just about 100% reliable as I've had my scores in those games for as far back as I can remember!
Shoegazer
I'm don't know, but I'll throw in my veiws anyway.

1)

My guess is two fold. More people testing the savestate now that hiscore is not officially supported, thus bugs found quicker, reported quicker, and fixed quicker. The games that have savestate are easier to test other bugs, especially if the errors are far into the game, and between computers. Once the bugs are fixed, the savestate should be much more stable. However:
2) Every bug fix, be it in the game driver, or the sound, cpu, or core code, might mess up the savestate (if the savestate was saving something wrong). With savestate's aid in finding and fixing bugs, adding savestate might increase the number and rate bugs are reported & fixed (and reducing the number of hidden bugs). Each fix can effect the stability of the statesave saves.
Some might say "But it was working before!" It wasn't working
correctly though. Example: friend & I didn't know exactly how to play checkers, so we started with the red pieces on the red squares, and the black pieces on the black squares. We happily played fine for about an hour, jumping over each other crosswise, and thought we were sooo smart being able to figure how to play on our own. Then our day care lady saw use playing and taught us correctly. If we had "saved" a game of our incorrect play, it isn't compatible with correct play. Same with savestate.
3) I think it's a trend, but I don't think savestate will be totally stable until mame 1.0 (aka "until pigs fly"). As long as mame is developing and making fixes, savestate can't be guaranteed to work between versions. But... I think games & savestate will generally have this cycle:
Game added (unstable, lots of bugs)
Game major bugs fixed (stablizes some)
Game adds savestate (savestate fairly stable)
Game finds & fixes more bugs (savestate gets less stable)
Most bugs found (savestate & game play stablizes)
Major revision in CPU, driver, sound, timing, etc (may break savestate)
Game finds & fixes more bugs (savestate gets less stable)
Most bugs found (savestate & game play stablizes)
(...repeat as needed...)
I think we're at the last step, just recovering from all the recent major revisions.