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
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
Add comment