Files
wagic/projects/mtg/include
wagic.jeck 0d3686e65a Jeck - Cache fix, booster duplicate fix.
* Restored OptionItem saving fix.
 * Booster duplicate replacement was picking random cards from the wrong set. My fault, but I've fixed it :)
 * The problem with cache had nothing to do with memory fragmentation, but I've switched to an array rather than map<> just in case. The actual issue was that in GameStateDeckViewer, I'd given the cache unlimited space, thinking that AttemptNew would recover from any bad_allocs. Unfortunately, the image loading routines and similar stuff called by various implementations of WResource::Attempt() could fail halfway through, leaking memory. 

The temporary solution is to set a proper limit (8000000 px, more or less) and (in case we still run out of memory) test to make certain CACHE_SPACE_RESERVED can be malloc'd/free'd. The proper solution would be to keep byte-perfect records of memory used (right now we're kinda fuzzy-- we track pixels per image and bytes per sound, but not the space for jquads or other incidentals) instead of testing a malloc, and potentially cleaning up all calls inside of Attempt() so they fail without leaks. That's what I'm working on now.

Still, it's nice to have identified the problem. This version of the cache should be fully functional, it's just a bit inelegant.
2009-09-19 21:11:35 +00:00
..
2009-07-11 15:59:51 +00:00
J :
2009-08-22 05:59:43 +00:00
2009-09-13 12:42:18 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-09-04 13:22:15 +00:00
J :
2008-11-12 13:45:42 +00:00
2009-09-12 14:03:22 +00:00
2009-07-11 15:59:51 +00:00
2009-06-25 14:23:21 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 06:39:29 +00:00
J :
2009-09-12 12:57:50 +00:00
J :
2009-09-13 10:57:55 +00:00
2009-09-08 14:11:47 +00:00
J :
2008-11-12 13:45:42 +00:00
2009-02-16 13:46:14 +00:00
J :
2009-09-03 02:16:53 +00:00
J :
2009-08-31 02:00:33 +00:00
2009-07-26 06:08:39 +00:00
2009-05-19 13:45:53 +00:00
2009-09-13 12:42:18 +00:00
J :
2009-06-15 00:56:30 +00:00
2009-06-26 11:38:53 +00:00
2009-09-19 10:51:45 +00:00
J :
2009-09-15 16:15:46 +00:00
2009-07-16 11:48:59 +00:00
2009-08-22 00:46:45 +00:00
J :
2009-08-22 06:43:49 +00:00
J :
2009-08-22 06:01:52 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 06:01:52 +00:00
J :
2009-09-08 14:53:23 +00:00
J :
2009-08-22 05:59:43 +00:00
2009-08-29 14:16:58 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 06:27:03 +00:00
J :
2009-09-03 02:16:53 +00:00
2009-01-17 01:46:11 +00:00
2009-08-26 14:30:24 +00:00
J :
2008-11-12 13:45:42 +00:00
J :
2009-05-23 08:34:50 +00:00
2009-09-06 04:55:05 +00:00
2009-08-28 13:40:14 +00:00
2009-09-05 09:17:30 +00:00
2009-09-12 12:40:14 +00:00
2009-07-18 14:26:58 +00:00
2009-09-06 02:50:54 +00:00
2009-09-13 12:42:18 +00:00
J :
2009-08-22 06:01:52 +00:00
2009-09-13 12:42:18 +00:00
J :
2009-09-04 13:22:15 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-31 02:00:33 +00:00
2009-05-20 11:07:20 +00:00
2009-06-25 11:09:51 +00:00
2009-05-25 12:43:58 +00:00
2009-08-28 05:40:10 +00:00
2008-11-24 09:24:47 +00:00
J :
2009-09-04 13:22:15 +00:00
2009-09-14 14:07:30 +00:00
2009-07-11 15:59:51 +00:00
2009-08-25 11:55:07 +00:00
2009-05-31 09:42:08 +00:00
2008-12-16 14:20:03 +00:00
2009-05-16 15:23:26 +00:00
J :
2009-09-05 11:44:34 +00:00
J :
2009-09-07 16:40:03 +00:00