Skip to content

[bug] ofGetLastFrameTime() always returns 0 #8238

@artificiel

Description

@artificiel

on macOS14 with current OF-git, doing this always prints 0:

void ofApp::update(){
	ofLogNotice("last") << ofGetLastFrameTime();
}
[notice ] last: 0.0
[notice ] last: 0.0
[notice ] last: 0.0
[notice ] last: 0.0

perhaps it's local to macOS — could other platforms confirm?
if it's really a regression it's traceable to #7966 and reverting it fixes the problem:

[notice ] last: 0.00400008
[notice ] last: 0.0123949
[notice ] last: 0.00437546
[notice ] last: 0.0117662

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions