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

大约有 45 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)

11. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 89%]

...ts.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动...

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

12. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 89%]

...ts.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动...

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

13. 加载-销毁Texture使用的图片资源 [ 89%]

...aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(this.PathBg); Laya.loader.clearTextureRes(this.PathFly); this.isDestroyed = true; this.txt.text = "恢复"; } }; return GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprite = lay...

来源: Laya_示例 发布时间: 20260303

14. 【紧急】clearRes清理缓存后,再加载图片会有延时显示问题 [ 88%]

...exture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清理texture里面使用的图片资源,并不销毁texture,再次使用到的时候会自动恢复图片资源 而clearRes会彻底销毁texture,导致不能再使用;clearTextureRes能确保立...

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

15. laya.net.LoaderManager [ 86%]

...ResByGroup(group:String):void 根据分组清理资源。 LoaderManager  clearTextureRes(url:String):void 销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清...

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

16. laya.net.LoaderManager_API3.0 [ 83%]

...Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创...

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

17. laya.net.Loader_API3.0 [ 79%]

...cessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasListener load loadPackage off offAll offAllCaller on once cacheRes clearRes clearResByGroup createNodes getAtlas getBaseTexture getRes getTexture2D registerLoader setGroup w...

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

18. 为何纹理的加载使用没有引用计数管理起来,单一复用? [ 78%]

...要一清除,所有的该图片都失效,引用计数不是有多处?clearTextureRes方法,可解决该问题,但会导致现有的图片重新渲染闪一下,并不完美。 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

19. 开关页面导致内存一直增长 [ 76%]

...的时候进行了清理,大多数的放用的方法是” Laya.Loader.clearTextureRes(url);   比如这个页面的关闭  Close(): void {         IconManager.Instance().clearTexture(this.leftverticaldrawing.skin);//清理某个动态贴图的资源(clearRes方法清理png)    ...

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

20. Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? [ 70%]

...前我会先清理上一个动画的资源 this.anim.clear(); Laya.loader.clearTextureRes( url); 别抢小虎 • 2018-05-08 10:52 现在游戏逻辑有点多,只能这样描述一下流程 w1114367261 • 2018-05-08 14:36 你清理上一个动画的资源是不是把整个动画的图集都清理...

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