-
Notifications
You must be signed in to change notification settings - Fork 4
Description
it seems in my test setup, that i have some problems with framerates with the master branch.
first thing is the use of glfw window, which can't make it faster than 40FPS, changing it to glut makes the trick, and framerates goes to 60 as configured. -> @Giladx , @nanu-c can anyone try to compile two versions of lpmt (one with glfw and the other with glut, there is only minor changes to do in main.cpp) to see if you have the same problem.
second thing is that streaming lpmt's output seems very time consuming, and i think it's due to grabbing an opengl screen every cycle through ofImage.grabScreen().
With preview on, i can't have better perf than 15FPS, which is really low to dysplay a live stream, when turning it off, i go back to 60FPS!
-> i don't know about a better method to grab a screen, any ideas? an other option would be to thread the stream from lpmt, so that the streaming part would not slow down the dysplay part, but i have never done such a thing...