Giter Club home page Giter Club logo

Comments (1)

smallnewer avatar smallnewer commented on September 27, 2024

最终在线上游戏实现了,总结一下。
总的来说,是一个HACK级的方案,不优雅。但效果明显,说不崩就不崩(😂)。更大的价值在于,我不希望开发者浪费精力在资源管理这种事情上。对于手游这种体量,引擎能自动搞定,就尽量不要人来参与。
以是否近期被渲染作为清除依据,粗暴的删除。但是游戏内的战斗,对资源管理复杂(譬如一个角色可能同时依赖多份资源,5方向的,总不能清了过一会再加载),清除时间过短,会造成频繁加载,极大的增加了CPU和网络负担。解决倒也简单,丢一个自定义的权限函数就好。

from bugs.

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.