High CPU when minimized... (mac)


Hi! I have developed a simple application using OF10.0 which has a separate thread for reading data from serial port. It works fine, cpu usage is around 3%, but if i minimize the application - it’s cpu usage jumps to 200%… how is this possible? Am I missing something?

Thanks a lot!


on mac the when an application is minimized the vsync signal doesn’t work anymore and the application runs as fast as possible instead of at 60fps (or whatever is the vertical refresh rate of your monitor)

to solve it you can simply add ofSetFrameRate(60) in your setup so the framerate is limited to 60fps even when minimized


Yes, it helped! Thanks Arturo, I would never guess this myself.
That’s interesting because I heard that on IOS it’s quite opposite…