HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Keeping cache clean

05-18-2004, 06:47 PM#1
Narwanza
Does the game cache matter as much as say a location when it comes to memory? All I am storing is strings and integers, and I have never had a problem in a map with hundreds of integers, but I was thinking since the gamecache wrote to something else besides warcraft, that maybe it wouldn't leak. Oh, and a little question, do gamecaches have to have the .w3v extension on them? Could it be .c, or .gc?
05-19-2004, 01:03 AM#2
AIAndy
I don't think that extension matters so that it could be anything or not there at all.
05-19-2004, 06:53 AM#3
Cubasis
While you don't use the native to save the cache to it's file, it is stored completely in memory. While I am not certain of how heavy it is, it doesn't seem to be all that serious, as both I, (and RodOfNod f.ex.) are using it VERY heavily in our maps, and atleast I have yet to find a serious qualm to it.

And it is not really "Memory Leaks" that would be the problem, as this is a data-storage, so it just uses the memory it uses to store it's data, so while it's active, it isn't a lost/leaked memory. Remember you can always flush the game-cache to clear the memory. We talk about leak's when we dynamically create stuff that we lose reference of, that's not the problem with GameCache.

~Cubasis