Giter VIP home page Giter VIP logo

Comments (3)

lexrus avatar lexrus commented on August 17, 2024

你可以试着降低帧数,改一下 _displayFrameTick 这个方法。
另外,理论上,使用 SpriteKit 效率会更高,CPU 占用也更低。

from ltmorphinglabel.

imkcat avatar imkcat commented on August 17, 2024

确实改了帧数就好了一些,谢谢,但是确实有点占用CPU,但是真的非常喜欢这种效果,初入开发,就能够接触到这么牛的效果,我是OC和Swift混编的,应该没有什么影响吧

from ltmorphinglabel.

lexrus avatar lexrus commented on August 17, 2024

如果你用了那几个粒子动画效果的话,可以适当减少喷发量,或者降低素材分辨率,也能提高性能。
用 Swift 的话最终项目会多一个运行时,包会大一点,其它没什么影响。

不过上面提到的这些问题会随着硬件更新换代自动解决,我觉得可能不需要花时间解决,请原谅。

from ltmorphinglabel.

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.