Giter Club home page Giter Club logo

deltatimechecker's Introduction

DeltaTimeChecker

Time.deltaTimeの値をグラフで視覚的に確認するプログラムです。

VSYNCカウントで同期を行わず、Application.targetFrameRateでフレームレートを設定する場合、、targetFrameRateには、-1、画面のリフレッシュレートに等しい値、またはリフレッシュレートを整数で割った値のいずれかを設定する必要があります。

デバイスのリフレッシュレートが90[Hz]、Application.targetFrameRate=60とした場合にUnity2018とUnity2019でが下記のようにTime.deltaTimeの値が異なっています。 上がUnity2018で下がUnity2019の実行結果です。

Unity2018_4_36f1

Unity2019_4_28f1

平均で16[msec] = 60[FPS]となっている所がいじらしい。

※(鋸歯になるのはUnity2019以降である為、Unity2019以降で、Time.deltaTimeをより正確にする補正が入ったと考えられます。)

一方、Time.timeSinceStartup の前のフレームレートとの差分(緑のグラフ)は一定の為、こちらには補正が入っていないということになります。

deltatimechecker's People

Contributors

katsumasa avatar samuryu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.