Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OnRenderImage's unscaledDeltaTime usage is inaccurate #11

@nicekei

Description

@nicekei

Hi,

first thank you for the nice featured encoder.
I encountered a strange timing problem on Nexus5x/Android O machine.

On it, the frame rate is recorded much faster. I looked into it and found the inaccurate use of unscaledDeltaTime. It was meant to use in Update/FixedUpdate/LateUpdate, not in OnRenderImage. Sometimes it matches roughly the actual time, but sometimes not.

I recorded Time.time and manually calculated the offset. This way, the problem is solved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions