From: Stewart T. <wsr...@ho...> - 2005-03-07 10:50:51
|
For me, the key question about using a replay log as the game save mechanism is - will it be fast enough when the replay logs are large late in the game? If there are a large number of "actions" to be replayed to take the game state from "start" up to SR "M" and OR "N" then this may become an irritant on a relatively slow computer. On frequency of writing to disk - if it is to be a secure game recovery mechanism, then IMHO it needs to write to disk, and flush that write to disk, after *every* action - this is basically how most transaction oriented database systems work. It would be annoying to lose most of an SR or OR simply because someone, in their excitement, accidently kicked the power cable out! Stewart >From: "Brett Lentz" <wak...@ea...> >Reply-To: rai...@li... >To: rai...@li... >Subject: RE: [Rails-devel] Saving and logging. >Date: Sun, 06 Mar 2005 13:43:06 -0800 > > > > >> I've been thinking about the game-save and game requirements, > >> and it seems > >> to me > >> that these are best served by a single solution: All the > >> user's funtional > >> input, > >> e.g. "Fred buys a B&O share", "PRR lays a #9 on H14/ew" > >> should be saved in a > >> replayable log. This log could be held in memory > > > >Why not written to a file immediately? > >Granted that Windows does not crash that often these days, > >but why take the risk? > >My preference is to have these written to a temp file when we transition >from stock round to operating round and from operating round to stock >round. > >Then, when the user wants to save the game, we just move the temp file to >the user-specified location. > >I don't think we need to be constantly writing out to the disk, but we also >don't want to wait _too_ long before saving the game. > > >---Brett. > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Rails-devel mailing list >Rai...@li... >https://lists.sourceforge.net/lists/listinfo/rails-devel |