minor formatting
This commit is contained in:
parent
07901202bf
commit
fd4cb23182
@ -785,12 +785,10 @@ function checkPlayerDie() {
|
|||||||
}
|
}
|
||||||
function drawFps() {
|
function drawFps() {
|
||||||
push();
|
push();
|
||||||
|
|
||||||
fps = Math.round(frameRate() * 10) / 10;
|
fps = Math.round(frameRate() * 10) / 10;
|
||||||
if (fps_recent_values.length < 200) fps_recent_values.push(fps);
|
if (fps_recent_values.length < 200) fps_recent_values.push(fps);
|
||||||
else fps_recent_values.shift();
|
else fps_recent_values.shift();
|
||||||
fps_recent_values.push(fps);
|
fps_recent_values.push(fps);
|
||||||
|
|
||||||
fill("red");
|
fill("red");
|
||||||
text(fps, 400, 99);
|
text(fps, 400, 99);
|
||||||
stroke("black");
|
stroke("black");
|
||||||
|
Loading…
Reference in New Issue
Block a user