幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 3792|回复: 0

[文档] Mr.doob的stats.as,检测内存,FPS等。

[复制链接]

86

主题

250

帖子

390

积分

版主

Rank: 7Rank: 7Rank: 7

积分
390
发表于 2009-12-9 10:42:25 | 显示全部楼层 |阅读模式
FPS Frames per second, how many frames were rendered in 1 second, the bigger the better.
MS Milliseconds needed to render a frame, the lower the better.
MEM Memory your code is using, if it increases per frame is VERY wrong.
MAX Maximum memory the application reached.


下载:
http://mrdoob.googlecode.com/svn ... ires/debug/Stats.as

使用方法:import 之后,addChild( new Stats() );添加到最后你想显示的地方。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2024-4-18 14:21 , Processed in 0.021526 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表