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

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

21. UI帧率会突然降到30,drawcall和sprite数量也不多,有没有好的方法查性能开销呢? [ 87%]

...的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你这个可能就是设置帧率模式。检查你代码。 2018-07-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 concentrate 相关问题 两个对象new了一个相同的对...

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

22. 能不能在帧循环中使用三角函数和开根号等数学函数?我测试的结果是只要使用了这些sin/cos会导致帧率下降 [ 85%]

...致APP上架被拒的说明 LayaAirIDE下如何使用mask? 使用钢体设置防穿后仍有几率会穿透 问题状态 最新活动: 2018-05-16 23:28 浏览: 860 关注: 2 人

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

23. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 85%]

...数需求,但由于其需要计算边界,不适合频繁调用。 1. 设置容器的autoSize为true。 ```typescript var sp=new Laya.Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); ``` 上述代码可以在运行时正确获取宽高。autoSize...

来源: Laya2.0_文档 发布时间: 20210714

24. 如何实现类似unity3dFixedUpdate的每秒固定的帧 [ 84%]

...755 赞同来自: 暂时没有提供相关接口。 在Stage下只有以下设置         /**全速模式,以60的帧率运行。*/         public static const FRAME_FAST:String = "fast";         /**慢速模式,以30的帧率运行。*/         public static const FRAME_SL...

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

25. laya.display.Stage [ 81%]

...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite  bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMode : String指定要...

来源: laya_api 发布时间: 20170929

26. laya.ani.AnimationPlayer_API3.0 [ 81%]

...turns number value 默认帧率 Defined in laya/ani/AnimationPlayer.ts:195 设置默认帧率,每秒60帧,注意:修改此值会有计算开销。* Parameters value: number Returns void value 缓存帧率 cacheFrameRateInterval get cacheFrameRateInterval(): number Defined in laya/ani/AnimationPlay...

来源: Laya3.0_api 发布时间: 20231115

27. 新手学layabox的疑问,关于api文档 [ 79%]

...手学layabox的疑问,关于api文档 1、在学习的时候看到有关设置舞台是这么写的: Laya.stage.alignH = Laya.Stage.ALIGN_CENTER,想请问下小写的【stage】和首字母大写的【Stage】有什么区别,是怎么区分的? 2、为何在api文档中没有看到stage...

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

28. laya.display.Stage [ 78%]

...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite  bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMode : String指定要...

来源: Laya2.0_api 发布时间: 20190513

29. laya.ani.AnimationPlayer [ 76%]

...不包括重播时间 AnimationPlayer  currentTime : Number[write-only] 设置当前播放位置 AnimationPlayer  destroyed : Boolean[read-only] 获取是否已销毁。 AnimationPlayer  _elapsedPlaybackTime : Number 已播放时间,包括重播时间AnimationPlayer  isCache : Boolean = tr...

来源: Laya2.0_api 发布时间: 20190513

30. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 76%]

... this._doll_area.w = doll_area.w; this._doll_area.h = doll_area.h; }  // 设置容器的宽高 this.width = Math.max( this._blood_area.w, this._demon_area.w, this._doll_area.w );  this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h;  this.graphics.drawRect( 0, 0, this.width,...

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