openframeworks / openframeworks/openFrameworks
Background is cleared in the first frames with ofSetBackgroundAuto set to false
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
When background clearing is set to false, background is still cleared for several frames on start.
test case:
#include "ofApp.h"
bool painted = false;
ofImage image;
void ofApp::setup(){
ofSetVerticalSync(true);
ofSetFrameRate(60);
ofSetBackgroundAuto(false);
ofDisableAntiAliasing();
ofDisableDepthTest();
image.load("/Users/test/image.jpg");
}
void ofApp::update(){
}
void ofApp::draw(){
if (!painted) {
image.draw(0, 0);
painted = true;
}
}
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 with the supplied ofApp::setup(), update(), and draw() reproduction and trace the startup render loop when ofSetBackgroundAuto(false) is set. Verify that the initial frames preserve the framebuffer rather than clearing it, and confirm the behavior across the affected platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100