GithubHelp home page GithubHelp logo

Comments (4)

tangzx avatar tangzx commented on May 31, 2024

这个问题我也在纠结啊
在IOS上 LoadFromCacheOrDownload 第一次没有 CreateFromFile快,而且会产生一个解压的副本,占用手机内存会多一些
在Android上可以试试,因为Android上CreateFromFile不好使
如果有好的方案请告之,谢谢

from absystem.

cywater2000 avatar cywater2000 commented on May 31, 2024

Android可以用CreateFromFile啊。关于LoadFromCacheOrDownload第一次解压缩的问题,我想到的解决方法就是在游戏第一次运行时,先全部调用LoadFromCacheOrDownload一次解压缩,只不过url是本地文件

from absystem.

tangzx avatar tangzx commented on May 31, 2024

哦哦,我说错了,我的意思是在iOS可以直接从StreamingAssets里CreateFromFile,而Android就得缓存一份到外部再CreateFromFile,(虽然也可以直接CreateFromFile,但太慢,因为是从apk/zip中读取的)
第一次运行时解压一遍可以考虑,有的游戏的确这样做的:+1:

from absystem.

cywater2000 avatar cywater2000 commented on May 31, 2024

恩,没有最完美的解决方案。暂时先用压缩吧

from absystem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.