Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Varying frame rates for long movies when calling getCurrentFrame(); #14

Open
sheridanis opened this issue Nov 19, 2015 · 1 comment
Open

Comments

@sheridanis
Copy link
Collaborator

If you play a movie and use getCurrentFrame() then the movie framerate get progressively slower until the end of the movie. For a movie that's 130 sec long the rendering FPS goes from 700fps at the start of the movie to 30fps by then end. For a 10min movie it gets much lower to the point of being unwatchable.

This has been tested with ofx 0.8.4 and 0.9 under both windows and osx using both glut and glfw for the windowing toolkit. The easiest way to reproduce things is to add the below line to the example and swap the example movie for something a bit longer.

ofDrawBitmapString("Frame: " + ofToString(movie.getCurrentFrame()), 10, 45);

@bangnoise
Copy link
Owner

yea, get/setCurrentFrame have to step through the movie until they get to the frame - it's not ideal. Using get/setPosition is faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants