Rockbox

Tasklist

FS#2584 - Sokoban caches leveldata (dependent on plugin buffer size)

Attached to Project: Rockbox
Opened by Anonymous Submitter - Sunday, 17 July 2005, 18:14 GMT
Last edited by Daniel Stenberg (bagder) - Monday, 09 January 2006, 11:48 GMT
Task Type Patches
Category Games
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This patch adds a leveldata cache to the Sokoban
game. The cache stores parsed leveldata for a number
of levels to minimise disk accesses while playing.

I've also added a #define to control the size of the
leveldata cache - currently, if plugin buffer size is >
20000, we cache 20 sokoban levels, otherwise the
cache is disabled. That could definitely be tweaked to
be more appropriate for specific devices.
This task depends upon

Closed by  Daniel Stenberg (bagder)
Monday, 09 January 2006, 11:48 GMT
Reason for closing:  Out of Date
Additional comments about closing:  Logged In: YES
user_id=1110

1396515 is an update to this.
Comment by Anonymous Submitter - Wednesday, 04 January 2006, 03:28 GMT

I'm posting a new patch for this purpose which buffers
levels in all but 8k of however much plugin ram there is. I
hadn't seen this patch before I started, so my method is
also different, but hopefully not objectionable.
Comment by Daniel Stenberg (bagder) - Monday, 09 January 2006, 11:48 GMT

1396515 is an update to this.

Loading...