Giter Site home page Giter Site logo

CPU ressource leak ? about ofximgui HOT 8 OPEN

jvcleave avatar jvcleave commented on August 17, 2024
CPU ressource leak ?

from ofximgui.

Comments (8)

jvcleave avatar jvcleave commented on August 17, 2024

Weird - I am assuming on a Mac?

from ofximgui.

martialgallorini avatar martialgallorini commented on August 17, 2024

yes on a macbook pro 15" late 2013

i will try under linux

from ofximgui.

martialgallorini avatar martialgallorini commented on August 17, 2024

less effect under Ubuntu 14.04.3 but still...

also, same problem with the provided example.

from ofximgui.

jvcleave avatar jvcleave commented on August 17, 2024

@martialgallorini I created a test branch for this. The CPU use certainly is reduced when minimized but I am unsure of the implication on any background tasks (i.e. OSC, image processing, etc)

https://github.com/jvcleave/ofxImGui/tree/minimized-cpu-test

from ofximgui.

martialgallorini avatar martialgallorini commented on August 17, 2024

hey. I gave it a shot.
It is a bit better but issue persists.

As i said, when app is in the front, it uses much less CPU.

ofApp in front and Chrome in the back :

capture d ecran 2015-12-15 a 17 23 05

Chrome in front with ofApp in the back :

capture d ecran 2015-12-15 a 17 24 02

oF v09 on Macbook Pro core i7 under OSX El Capitan

from ofximgui.

jvcleave avatar jvcleave commented on August 17, 2024

The code is only concerned when the app is minimized. GLFW_FOCUSED (as opposed to GLFW_ICONIFIED ) may work better for background

from ofximgui.

martialgallorini avatar martialgallorini commented on August 17, 2024

Yes i see. This sure is better.
But this doesn't solve the problem...

Do you think this is related to the OS ?

from ofximgui.

jvcleave avatar jvcleave commented on August 17, 2024

It may partially be related to the OS. Also depends if OF has anything to assist with dealing with app focus in place.

Why doesn't it solve the problem?

from ofximgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.