浏览代码

Clean up

/main
Evgenii Golubev 6 年前
当前提交
b2851e30
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


// This makes reliable detection of the start of the new frame VERY hard.
// One of the exceptions is 'Time.realtimeSinceStartup'.
// Therefore, outside of the Play Mode we update the time at 60 fps,
// and in the Player, we rely on 'Time.frameCount'.
// and in the Play Mode we rely on 'Time.frameCount'.
float t = Time.realtimeSinceStartup;
int c = Time.frameCount;

if (newFrame) m_FrameCount = c;
}
#if UNITY_EDITOR
else
{
newFrame = ((t - m_CurrentTime) * 1000.0f) > 16.6;

#endif
if (newFrame)
{

正在加载...
取消
保存