Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofTimer nanoseconds values

$
0
0

@hubris wrote:

Hi!

I’m trying to use ofTimer, as the example provided in the documentation.

When I setPeriodicEvent to 1 nano second or lower, everything runs as expected.
If I go over that value, it just runs as fast as it can.

uint64_t nanoseconds = 1000000000; // One second, OK
uint64_t nanoseconds = 500000000; // Half-second, OK
uint64_t nanoseconds = 2000000000; // Two seconds, NOT OK

What am I missing?

(macOS 10.13.6, OF 0.10.1, Xcode 10.1, debug and released, no changes to build settings)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles