加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flash沙盘预测试性能

发布时间:2020-12-15 18:45:01 所属栏目:百科 来源:网络整理
导读:? ?????? 页游常用flash,flash要做出效果又节约资源是性能诟

??????? 页游常用flash,flash要做出效果又节约资源是性能诟病。

?????? 这里可以尝试做一个推送沙盘,背景是场景的背图,里面跑xxx3D模型,在一定范围内无序8个方向固定速度行走。需要使用景深排序。

?????? import ghostcat.debug.Debug;???????

?????? 创建一个 protected function CreateUI??? add一个基本的fpsaddChild(new FPS())

?????? import ghostcat.debug.FPS;

?????? 人物和人物之间的处理。

????? import ghostcat.game.item.sort.Sort45Calculater;

?????? import ghostcat.game.item.sort.SortYCalculater;?

private function confirmBNHandler(event:MouseEvent):void?

? ? ? ? ? ? ? ? {?

? ? ? ? ? ? ? ? ? ? ? ? var n1:int = int(stageWText.text)?

? ? ? ? ? ? ? ? ? ? ? ? var n2:int = int(stageHText.text)?

? ? ? ? ? ? ? ? ? ? ? ? var n3:int = int(runnerNumText.text)?

????????????????????????if (n1 && n2 && n3)?????????????????????????

??????????????????????? this.init(renderBN.selected,sortBN.selected,boxsGridBN.selected,positionBN.selected,n1,n2,n3);?

?????????????????}??????????????

???????????????

import ghostcat.ui.controls.GText;

import ghostcat.game.util.GameMoveByPathOper;

最后让人物模型移动起来,人物模型移动起来时,可以设置多少模型的数量。
这样就可以本地看下Cpu和虚拟内存。

最好是可以设置不同测试的场景:

比如人物模型和npc模型运行;人物模型围绕场景模型定点移动等。

?当在本地查看可以接收后,就可以制定可见模型的数量,面数,便于布怪。

转自自己网易博客love_yan

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读