mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 04:55:37 +00:00
Correct field naming.
This commit is contained in:
parent
6e40aebeb3
commit
2caeaf40e1
|
@ -24,7 +24,7 @@ namespace OpenTK
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The previous frame time reported by GTK.
|
/// The previous frame time reported by GTK.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private double? PreviousFrameTime;
|
private double? _PreviousFrameTime;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the time taken to render the last frame (in seconds).
|
/// Gets the time taken to render the last frame (in seconds).
|
||||||
|
@ -94,17 +94,17 @@ namespace OpenTK
|
||||||
{
|
{
|
||||||
var frameTimeµSeconds = frameClock.FrameTime;
|
var frameTimeµSeconds = frameClock.FrameTime;
|
||||||
|
|
||||||
if (!PreviousFrameTime.HasValue)
|
if (!_PreviousFrameTime.HasValue)
|
||||||
{
|
{
|
||||||
PreviousFrameTime = frameTimeµSeconds;
|
_PreviousFrameTime = frameTimeµSeconds;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var frameTimeSeconds = (frameTimeµSeconds - PreviousFrameTime) / 10e6;
|
var frameTimeSeconds = (frameTimeµSeconds - _PreviousFrameTime) / 10e6;
|
||||||
|
|
||||||
DeltaTime = (float)frameTimeSeconds;
|
DeltaTime = (float)frameTimeSeconds;
|
||||||
PreviousFrameTime = frameTimeµSeconds;
|
_PreviousFrameTime = frameTimeµSeconds;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue