-
Notifications
You must be signed in to change notification settings - Fork 110
AssetCacheManager说明
billwillman edited this page Jul 18, 2016
·
1 revision
AssetCacheManager用于对资源进行Cache策略。
cCacheUnUsedTime:资源多久没使用将被真正释放。
cCacheTickCount:每一帧判断Cache的数量,一般不用修改。AssetCacheManager并不是每一帧遍历所有资源,而是在每一帧遍历cCacheTickCount个资源,好处将资源循环时间分摊。
cCacheMemoryLimit:内存警告阈值。当>=cCacheMemoryLimit的时候,将必触发资源清理。
cAssetBundleMaxCount:同时加载最多的AssetBundle数量(当cIsCheckAssetBundleCount为True时有效,4.x在IOS上有文件句柄限制,需要开启)。
cIsCheckAssetBundleCount:是否开启AssetBundle加载上限判断(4.x在IOS上有文件句柄限制,需要开启)。
说明:清理未使用资源 参数: isStep:是否 此次调用最多循环cCacheTickCount个资源。false则循环所有资源。