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

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

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

# Texture资源销毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() {...

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

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

# Texture资源销毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() {...

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

3. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 99%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

4. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 99%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

5. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 99%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

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

...便舞台没有任何对象,也会占用这部分内存; * 2. 销毁 Texture 使用的图片资源后,会保留 Texture 壳,当下次渲染时,发现 Texture 使用的图片资源不存在,则自动恢复。 */ var GameMain = /** @class */ (function () { function GameMain() { this.isDest...

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

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

...自: 参照文档:https://ldc.layabox.com/doc/?nav=zh-as-3-2-7   销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清理texture里面使用的图片资源,...

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

8. laya.net.Loader [ 97%]

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

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

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

... = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cli...

来源: Laya2.0_示例 发布时间: 20240930

10. Loader.clearRes(..., true); 强制释放图片后出现黑色 [ 96%]

... Monica - 知识达人 赞同来自: 1.7.12beta版本新增了一个clearTextureRes接口,如果你不确定之后是否会用到这张资源的话可以用Laya.loader.clearTextureRes("url")进行销毁。 关于clearTextureRes: 销毁Texture使用的图片资源,保留texture壳,如果下...

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