Skip to content

Commit

Permalink
Update FPS.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Dec 5, 2024
1 parent 3185fd8 commit 7bb87ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/debug/FPS.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ class FPS extends TextField {
memPeak = mem;

if (visible) {
if (onRight)
if (onRight) {
x = Application.current.window.width - width - xStart;
else
for (border in borders)
border.x = Application.current.window.width - width - xStart;
} else
x = xStart;

text = 'FPS: ${times.length}\nMEM: ${FlxStringUtil.formatBytes(mem)} / ${FlxStringUtil.formatBytes(memPeak)}';
Expand Down

0 comments on commit 7bb87ba

Please sign in to comment.