Skip to content

Release v3.6.0

Choose a tag to compare

@michael811125 michael811125 released this 12 Feb 07:13
· 136 commits to master since this release

[3.6.0] - 2026-02-12

English

  • CoreFrame

    • Optimization

      • Significantly optimized loading by refining the logic for checking the sceneName prefix ("build#"). Utilized AsSpan to improve efficiency and reduce GC (achieving almost 0 GC).
  • AssetLoader

    • Optimization

      • Significantly optimized loading by refining the logic for checking the assetName prefix ("res#"). Utilized AsSpan to improve efficiency and reduce GC (achieving almost 0 GC).
    • Fixes

      • Fixed GroupCache (GroupBundle & GroupResources) methods by removing the forceUnload parameter. Since GroupCache uses weak references, this prevents accidental triggering of forceUnload, which could lead to reference errors, making the system safer.
    • Adjustments

      • Adjusted AssetLoaders Unload-related interfaces. Since GroupCache uses weak references, the naming convention now prioritizes the "Unload" prefix.
        • ReleaseBundleRawFiles(int groupId) -> UnloadRawFiles(int groupId)
        • ReleaseResourceAssets(int groupId) & ReleaseBundleAssets(int groupId) -> UnloadAssets(int groupId)
      • Adjusted AssetLoaders Release-related interfaces. Unified the Release interface; it no longer distinguishes between ReleaseBundle and ReleaseResources (now determined by LoadType) without affecting efficiency.
        • ReleaseBundleScenes -> ReleaseScenes
        • ReleaseBundleRawFiles -> ReleaseRawFiles
        • ReleaseResourceAssets & ReleaseBundleAssets -> ReleaseAssets
    • Third-Party Library Changes

      • Removed the built-in YooAsset library; switched to PackageManager for installation and management (if modification of YooAsset source code is required, local installation via PackageManager is still supported).
        • Currently compatible with v2.3.18
          https://github.com/tuyoogame/YooAsset.git?path=Assets/YooAsset
          

中文

  • CoreFrame

    • 優化

      • 大幅度優化加載時,需要 Refine 判斷 sceneName 前墜的方式 ("build#"),使用 AsSpan 提高效率與降低 GC (幾乎 0 GC)。
  • AssetLoader

    • 優化

      • 大幅度優化加載時,需要 Refine 判斷 assetName 前墜的方式 ("res#"),使用 AsSpan 提高效率與降低 GC (幾乎 0 GC)。
    • 修正

      • 修正 GroupCache (GroupBundle & GroupResources) 方法,移除方法中的 forceUnload 參數,主要是 GroupCache 為軟引用,避免誤觸 forceUnload 導致引用錯亂,更安全。
    • 調整

      • 調整 AssetLoaders Unload 相關接口,GroupCache 為軟引用,所以以 Unload 開頭為主。
        • ReleaseBundleRawFiles(int groupId) -> UnloadRawFiles(int groupId)
        • ReleaseResourceAssets(int groupId) & ReleaseBundleAssets(int groupId) -> UnloadAssets(int groupId)
      • 調整 AssetLoaders Release 相關接口,統一 Release 接口,不在區分 ReleaseBundle 跟 ReleaseResources 了 (由 LoadType 決定),不影響效率。
        • ReleaseBundleScenes -> ReleaseScenes
        • ReleaseBundleRawFiles -> ReleaseRawFiles
        • ReleaseResourceAssets & ReleaseBundleAssets -> ReleaseAssets
    • 第三方庫改動

      • 移除 YooAsset 內置庫,改為 PackageManager 進行管理安裝 (如有需要改 YooAsset 的源碼,一樣可以透過 PackageManager 進行本地安裝)。
        • 目前兼容 v2.3.18 版本
          https://github.com/tuyoogame/YooAsset.git?path=Assets/YooAsset