Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2020.2.X

Votes

0

Found in

Issue ID

1285420

Regression

Yes

Time.deltaTime issues on secondary monitor in windowed mode.

Windows

-

Time.deltaTime is messed up when running in windowed mode on a secondary monitor which has a refresh rate that's not multiple of the primary monitor.

Discussion in forums: https://forum.unity.com/threads/time-deltatime-not-constant-vsync-camerafollow-and-jitter.430339/page-8#post-5756392

To repro:

1. Get a setup with 144 hz primary monitor and 60 hz secondary monitor, running Windows 10 version 1909 or older (DOES NOT REPRODUCE ON NEWER VERSIONS LIKE 2004)
2. Run the game in windowed mode on a secondary display with vsync enabled
3. Note the follow delta time values:

0.0138902
0.013888
0.0208355
0.013887
0.0208334
0.0138903
0.0138906
0.0208333
0.0138898
0.0208331

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.