mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-01-09 06:22:14 -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
|
@:noCompletion
|
||||||
#if !flash override #end function __enterFrame(deltaTime:Float):Void
|
#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;
|
if (mem > memPeak) memPeak = mem;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue