Add FPS Display

parent 59baf62b
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.75",
version: "0.0.76",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -504,6 +504,10 @@ let PresenceSketch = {
master.run(PresenceSketch.boids);
});
let fps = s.frameRate();
s.fill(255);
s.stroke(0);
s.text("FPS: " + fps.toFixed(2), 10, s.height - 10);
};
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment