openframeworks / openframeworks/openFrameworks
ofVideoGrabber performance issues on iOS
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I'm using a simple ofVideoGrabber like this:
void ofApp::setup(){
_videoGrabber.setup(1280, 720, OF_PIXELS_BGRA);
_screenWidth = ofGetScreenWidth();
_screenHeight = ofGetScreenHeight();
}
void ofApp::update(){
_videoGrabber.update();
}
void ofApp::draw(){
_videoGrabber.draw(0, 0, _screenWidth, _screenHeight);
}
On an iPhone 6 running iOS 9.1.3, the grabber starts smoothly, but the frame rate gets really bad after 5 seconds or so. Locking the phone and unlocking it restores the smooth frame rate, but it slows down again after further 5 seconds.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported ofVideoGrabber behavior on an iPhone 6 running iOS 9.1.3, using the setup, update, and draw calls shown in the issue. Measure the frame rate before and after roughly five seconds and after locking and unlocking the phone; completion would require identifying and resolving the slowdown, with the frame rate remaining stable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, ios
- Domain
- mobile-dev, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100