Comments (1)
最终在线上游戏实现了,总结一下。
总的来说,是一个HACK级的方案,不优雅。但效果明显,说不崩就不崩(😂)。更大的价值在于,我不希望开发者浪费精力在资源管理这种事情上。对于手游这种体量,引擎能自动搞定,就尽量不要人来参与。
以是否近期被渲染作为清除依据,粗暴的删除。但是游戏内的战斗,对资源管理复杂(譬如一个角色可能同时依赖多份资源,5方向的,总不能清了过一会再加载),清除时间过短,会造成频繁加载,极大的增加了CPU和网络负担。解决倒也简单,丢一个自定义的权限函数就好。
from bugs.
Related Issues (20)
- [收藏]A*的启发式算法
- 利用二进制操作降低保存进度的空间占用 HOT 1
- 计时器包装小计 HOT 2
- 多线程性能调优小记 HOT 1
- V8对象属性访问性能测试 HOT 1
- 不要对数组进行freeze或seal操作
- V8-JS性能调优小结 HOT 1
- 初识Async Functions和await
- 关于JS游戏服务端的新思考 HOT 2
- 貌似Node.js要引入worker了?
- ReactNative Macos环境搭建
- ReactNative Macos的性能测试
- ReactNative Macos首屏时间开销测量
- 跨平台类RN开发框架抽象思考 HOT 3
- Rust记录之模式匹配
- 订阅发布模式的优缺点
- VirtualizedList/FlatList工作原理及实现源码 HOT 1
- React Diff算法相关信息
- SectionList 和 FlatList 的具体差异在哪里
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugs.