Hi, I found out calling ofGetScreenWidth() or ofGetScreenHeight() causes frame rate to drop to 2~3 fps on Ubuntu.
You can test this by simply adding this code inside
cout << "frameRate : " << ofGetFrameRate() << endl;
I use OF_0.9.8_release and I found a relevant commit here. https://github.com/openframeworks/openFrameworks/pull/5028
But the problem still occurred even after applying the fix.
Calling ofGetWidth() or ofGetHeight() didn't slow down the app though.
I would appreciate if any Linux user can confirm this.
Thanks in advance!