• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 52 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0017 秒)

51. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

...减少drawCall。善用cacheAs将是引擎优化性能的利器。 下例绘制10000个文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++)...

来源: Laya3.0_文档 发布时间: 20240910

52. 让 CylinderMesh 支持椎体 [ 32%]

...出下面半径大小   修改第二个循环结构, 也就是柱状顶点绘制   __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numberIndices=3 *this._slices+6 *this._slices+3 *this._slices; var vertexDeclaration=VertexPo...

来源: Laya_社区 发布时间: 20180113