From e9e9d076406bcea1a0a7461a9db4d43b8f280d49 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 21 Nov 2022 18:33:18 +0000 Subject: add stats --- audioin/src/ofApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audioin/src/ofApp.cpp b/audioin/src/ofApp.cpp index e6b0e6d..8d5fe8c 100644 --- a/audioin/src/ofApp.cpp +++ b/audioin/src/ofApp.cpp @@ -55,13 +55,13 @@ void ofApp::draw(){ line.draw(); - laser.draw(line); + int numpts=laser.draw(line); ofPopMatrix(); frameNum++; - ofSetWindowTitle(ofToString(ofGetFrameRate())); + ofSetWindowTitle(ofToString(ofGetFrameRate())+" fps, pts:"+(numpts?ofToString(numpts):"ERR")); } -- cgit v1.2.3