位置: 编程技术 - 正文

cocos roadmap

编辑:rootadmin

推荐整理分享cocos roadmap,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

Cocos2d (v.3.0) rendering pipeline roadmap

(the vision)

The way currently Cocos2d does rendering is good but it is beginning to feel somehow antiquate and moreover it doesn’t actually leverage modern multi core CPUs so popular nowadays on most modern tablets and mobile phones.

So we want to re design Cocos renderer, for making it more performing, elegant, scalable, flexible but still simple to use and to understand. Also we want to maintain that same familiar API that current Cocos2d users will feel immediately comfortable with, without having to bother about what’s changed or new under the hood.

We will do this maintaining the same key cornerstone concepts Cocos2d users get to know and like as Scenes, Nodes, Layers, Sprites.

What (the goals)

Here is a high level view of the new features and improvements we would like to achieve in Cocos2d v.3.0:

Decouple the scene graph from the renderer

Visiting nodes issues graphics commands and put them on a queue, but doesn’t actually invoke any OpenGL rendering code

Viewing frustum Geometry culling

Sprites (and geometries more in general) not visible from the camera’s point of view be automatically removed from the current frame and not rendered

Rendering on a thread

The execution of all the rendering commands (i.e. OpenGL calls) will be moved to different thread than the main one (this will allow for better parallelism and usage of more than one CPUs cores where possible)

Automatic batching

Efficiently reduces the number of draw calls (automatically) batching them together when possible (i.e. sprites using the same material)

(Node based) Customizable rendering

As in the current version of Cocos, users will still be able (if needed) to customize rendering on a per node basis, calling OpenGL commands directly, disregarding the official renderer (but possibly incurring on worst performances)

How (the plan)

Central to the new design is the notionCommandQueue. While visiting a node, rendering will not call OpenGL commands directly anymore (as currently is the case); it will instead push CocosGraphicsCommands to a queue. Commands In the queue will subsequently be read by the rendering backend, processed as needed and pushed to the actual rendering API (i.e. OpenGL) (see picture)

The rendering backend (running on his own thread) will in turn pop graphics commands from the queue, process them and actually execute them. Any locking or CPU expensive OpenGL commands will be then executed from the back-end thread, letting Cocos’ main thread free continue working on parsing the scene graph or doing other non rendering related tasks. This will help parallelism and will allow for using multi core CPU’s (see picture)

With Cocos2d-x 3. we also want to introduce the concept ofautomatic batching. In fact we believe reducing the number of draw calls and render device state changes will improve drastically rendering speed.

cocos  roadmap

In order to achieve very good batching, we would like to introduce also a new concept of “attributes” for Layers (formally CCLayer). There are going to (at least) 3 new Layer attributes:

Unordered

Static

Batch

Unordered Layer (formally CCLayer)

We want now focus on Unordered Layers, which are going to help achieving auto batching for improving rendering performance.

Rendering order in Cocos2d is dictated by the “order” nodes are arranged in the scene graph (see picture)

This is still going to be true still in V.3.0 unless the Layer is tagged as Unordered.

The Unordered attribute will instruct the Layer to disregard rendering order for all of his children (see picture)

The graphics commands will then be put in the CommandQueue and a special “unordered tag” will be place in the command queue as well for instructing the rendered to disregard the order and re arrange graphics commands so to render all the primitives using the same material in one draw call. Rendering all primitives (that use the same “material”) in one go will make rendering much faster, especially on mobile devices.

Static Layer

Layers tagged as static, will be treated as if all children will not going to be translated/rotated/zoomed (transformed) during the entire lifespan of the layer. This will allow Cocos performing expensive operations as matrices concatenation or computing culling information (i.e. quad-tree) only once (typically before the first rendering pass) improving drastically performance. Note that sprites in a static Layer can still be “animated” as far as they’re not transformed or scaled.

Batch Layer

A batch layers will behave very similarly to how a Batch Node (CCBatchNode) currently works in Cocos2d. All the children of a batch layer will HAVE to use the same “material” thus allowing the front end to combine all the draw calls for that layer in one single one. (Erroneously) Adding children that use a different material to a Batch Layer will trigger an Assert ().

Automatic Culling

To do

Rendering context (RenderBucket, RenderTarget, Camera, viewport)

To do

Rendering and materials system

To do

Customize rendering for nodes

To do

cocos2d-x 引擎分析:如何实现跨平台 怎么样使用Cocos2d-x快速开发游戏,方法很简单,你可以看看其自带的例程,或者从网上搜索教程,运行起第一个SceneHelloWorldScene,然后在HelloWorldScene里面

/*--------------创建一个Scene的2个示例--------------*/ //第一种:创建一个普通的Scene//从App入口AppDelegate找到这样两行代码://创建一个Scene对象的指针autoscene=HelloWorld::createScene();//导演运行这个场景(第一次

关于cocos2d-x-3.x版本环境的搭建和自己创建工程的步骤 (一)环境搭建RichardMillings--::次阅读最近3.2版本更新出來了!这是自2.x分支以来修复了超过个bug,3.2版本是目前为止,官方发布的最稳

标签: cocos roadmap

本文链接地址:https://www.jiuchutong.com/biancheng/369149.html 转载请保留说明!

上一篇:各种回调:定时器schedule、普通回调callFunc、菜单回调menu_selector、事件回调event_selector(回调阶段)

下一篇:cocos2d-x 引擎分析:如何实现跨平台(cocos引擎教程)

  • 补充养老保险补充医疗保险税前扣除比例
  • 初税亩是什么意思
  • 房产税从价计征和从租怎么选择
  • 可供出售金融资产和长期股权投资
  • 年报的资产负债率在哪里
  • 税务报表的利润表
  • 期末数减期初数等于
  • 发票批量作废怎么操作的
  • 转让长期股权投资的净收益计入
  • 农产品收购发票可以跨区域开吗
  • 小规模纳税人第一次网上报税
  • 新个税聘用退休后怎么算
  • 销售研发试制样板图
  • 电子承兑汇票接收和转出步骤
  • 收款收据写着投诉有效吗
  • 建筑行业的收入是什么
  • 项目上发生伙食问题
  • 提供应税服务营改增的应税服务不包括什么
  • 公司拍摄费计入什么科目
  • 公司租车费用会计分录
  • 处置的固定资产
  • 旧房转让土地增值税核定
  • 公益组织接受捐赠怎么开票
  • 小型微利企业应纳税所得额300万
  • 交易性金融资产公允价值变动计入
  • 服务佣金是什么意思
  • 普通发票用记账吗
  • 三星电脑安装系统按哪个键
  • 产负债表的负债项目,显示了企业所负担债务的
  • 会计中记账凭证的名词解释
  • 联想随身充评测
  • 什么是递延所得税费用
  • 混合销售怎么分别核算
  • 排污费应计入什么会计科
  • 公司名称变更重新刻章
  • 怀特霍尔
  • 出售债券税费处理方法
  • 湿地上有什么植物
  • 支付宝小程序跳回app
  • 玄武湖公园游玩
  • node.js如何安装
  • 收到预付货款下月交货会计分录
  • css选择器权重
  • python 二值化
  • spring框架使用教程
  • 什么是子公司 和控股的区别
  • 建筑工程承包合同
  • 股东借款怎么转为利润分配
  • 出口产品报关多少天
  • sql模糊查询的关键字是什么
  • 已开票未收到款怎么做账
  • 工会经费会计分录最新
  • 企业的承兑汇票会计分录
  • 简易办法征收增值税是什么意思
  • 委托开发费用
  • 企业所得税汇算清缴调增的项目有哪些
  • 材料报废处理
  • 抵扣认证的发票怎么做账
  • 商业医疗保险的缺点
  • 要交多少税收跟什么有关
  • 消费税的科目设置在哪里
  • mac上mysql安装
  • Centos7.3下mysql5.7.18安装并修改初始密码的方法
  • fedora安装xorg
  • FreeBSD架? FTP
  • 升级bios后无法启动
  • win7系统升级到win10后,还能还原回来吗
  • linux pwdx命令
  • xp系统怎么卸载驱动程序
  • win7系统运行在哪
  • shell的逻辑运算符
  • python中的字典与列表属于什么类型
  • 安卓 旋转屏幕
  • 河东区地税局上班时间
  • 调查问卷的背景资料怎么写
  • 煤炭资源税税率是多少啊
  • 应征增值税不含销售额3%和5%征收的有什么区别
  • 职称评定专业一览表
  • 我们如何理解税收意义
  • 无锡国税电子发票怎么开
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设