コード例 #1
0
ファイル: EmuCreator.cs プロジェクト: ben0bi/EmulatroniX
    // Update is called once per frame
    void Update()
    {
        if (m_emulator != null)
        {
            m_emulator.Update();
        }

        // count the frames per second.
        m_fps_count++;
        m_fps_second += Time.deltaTime;
        if (m_fps_second >= 1.0f)
        {
            m_FPS        = m_fps_count;
            m_fps_count  = 0;
            m_fps_second = 0.0f;
        }
    }