Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a2
Issue ID
1084575
Regression
No
Time.captureFrame is broken for values less than 60
Time.captureFrame is broken for values less than 60. The attached project contains an automated test that confirms this. The test is:
[Test]
public void CaptureFramerate_WhenSet_MakesDeltaTimeConstant([Values(1, 10, 30, 60, 90, 72)] int rate)
{
Time.captureFramerate = rate;
Assert.That(Time.deltaTime, Is.EqualTo(1f / rate).Within(0.01f));
}
Running the test returns:
CaptureFramerate_WhenSet_MakesDeltaTimeConstant(30) (0.001s)
---
Expected: 0.0333333351f +/- 0.00999999978f
But was: 0.0163280964f
CaptureFramerate_WhenSet_MakesDeltaTimeConstant(10) (0.001s)
---
Expected: 0.100000001f +/- 0.00999999978f
But was: 0.0163280964f
CaptureFramerate_WhenSet_MakesDeltaTimeConstant(1) (0.033s)
---
Expected: 1.0f +/- 0.00999999978f
But was: 0.0163280964f
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment