Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnRenderImage's unscaledDeltaTime usage is inaccurate #11

Open
nicekei opened this issue Nov 18, 2017 · 0 comments
Open

OnRenderImage's unscaledDeltaTime usage is inaccurate #11

nicekei opened this issue Nov 18, 2017 · 0 comments

Comments

@nicekei
Copy link

nicekei commented Nov 18, 2017

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.

@nicekei nicekei mentioned this issue Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant