mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 08:13:45 +00:00
Make sure timestamps are consistent with use of Int64.
This commit is contained in:
parent
4f0e9614e0
commit
5b4a00e893
|
@ -2229,8 +2229,7 @@ class PlayState extends MusicBeatSubState
|
||||||
vocals.playerVolume = 1;
|
vocals.playerVolume = 1;
|
||||||
|
|
||||||
// Calculate the input latency (do this as late as possible).
|
// Calculate the input latency (do this as late as possible).
|
||||||
var currentTimestampNs:Int64 = PreciseInputManager.getCurrentTimestamp();
|
var inputLatencyMs:Float = haxe.Int64.toInt(PreciseInputManager.getCurrentTimestamp() - input.timestamp) / 1000.0 / 1000.0;
|
||||||
var inputLatencyMs:Float = haxe.Int64.toInt(currentTimestampNs - input.timestamp) / Constants.NS_PER_MS;
|
|
||||||
trace('Input: ${daNote.noteData.getDirectionName()} pressed ${inputLatencyMs}ms ago!');
|
trace('Input: ${daNote.noteData.getDirectionName()} pressed ${inputLatencyMs}ms ago!');
|
||||||
|
|
||||||
// Get the offset and compensate for input latency.
|
// Get the offset and compensate for input latency.
|
||||||
|
|
Loading…
Reference in a new issue