openframeworks / openframeworks/openFrameworks
ofGetLastFrameTime() bug.
Open
Nobody has claimed this yet.
bug
core
prelim-analysis
section-internals
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
code example:
int index;
void ofApp::setup(){
ofSleepMillis(3000);
index = 0;
printf("setup\n");
}
void ofApp::update(){
if(index < 5)
{
printf("update\n");
printf("%d - %f\n",index,(float)ofGetLastFrameTime());
++ index;
}
}
void ofApp::draw(){
if(index < 5) printf("draw\n");
}
console print:
setup
update
0 - 0.000000
draw
update
1 - 3.350256 => bug.....
draw
update
2 - 0.061795
draw
update
3 - 0.000984
draw
update
4 - 0.015198
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 locating the implementation and update path for ofGetLastFrameTime(), then reproduce the provided setup/update sequence with the three-second sleep. Compare the reported first-frame interval with the timing state across subsequent frames; done means the function reports consistent frame timing after setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100