~kota/slate

5909286a32d6d04f0f54c0877830e2b9aec8c3e0 — Matthew W Eisenstein 3 months ago f8d94fb
Add fps counter
1 files changed, 7 insertions(+), 0 deletions(-)

M ui/ts/main.ts
M ui/ts/main.ts => ui/ts/main.ts +7 -0
@@ 30,7 30,14 @@ function populateTable() {
populateTable();
main();

let frames = 0;
setInterval(function() {
	console.log(frames);
	frames = 0;
}, 1000);

function render() {
	frames ++;
	context.fillStyle = "#448866";
	context.fillRect(0, 0, canvas.width, canvas.height);