纳金网

标题: unity3d 设置固定帧速 [打印本页]

作者: yeu1233    时间: 2012-8-24 17:13
标题: unity3d 设置固定帧速

属性:Application.targetFrameRate   
static var targetFrameRate : intDescription
Ins***cts game to try to render at a specified frame rate.
Setting targetFrameRate to -1 (the default) makes standalone games render as fast as they can, and web player games to render at 50-60 frames/second depending on the platform.
Note that setting targetFrameRate does not guarantee that frame rate. There can be fluctuations due to platform specifics, or the game might not achieve the frame rate because the computer is too slow.
targetFrameRate is ignored in the editor.
function Awake ()
{
// Make the game***n as fast as possible in the web player
Application.targetFrameRate = 300;
}


作者: osaka    时间: 2012-8-24 18:39
犀利啊!!!!!!!!!!!




欢迎光临 纳金网 (http://rs.narkii.com/club/) Powered by Discuz! X2.5