mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-01-08 05:52:16 -05:00
use Math.fround instead of Math.round
This commit is contained in:
parent
ade4aeb3f7
commit
7904a6a20f
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class MemoryCounter extends TextField
|
|||
@:noCompletion
|
||||
#if !flash override #end function __enterFrame(deltaTime:Float):Void
|
||||
{
|
||||
var mem:Float = Math.round(MemoryUtil.getMemoryUsed() / BYTES_PER_MEG / ROUND_TO) * ROUND_TO;
|
||||
var mem:Float = Math.fround(MemoryUtil.getMemoryUsed() / BYTES_PER_MEG / ROUND_TO) * ROUND_TO;
|
||||
|
||||
if (mem > memPeak) memPeak = mem;
|
||||
|
||||
|
|
Loading…
Reference in a new issue