Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COG uses 50% cpu #5

Open
ghost opened this issue Aug 24, 2014 · 10 comments
Open

COG uses 50% cpu #5

ghost opened this issue Aug 24, 2014 · 10 comments

Comments

@ghost
Copy link

ghost commented Aug 24, 2014

As discussed in the thread on Google+ launching COG drives CPU usage up from 4% to about 60%
clean start no cog
cog running

@beaufortfrancois
Copy link
Owner

Thank you for submitting this.
Will see what I can do to fix that.

For reference, here are some additional notes from Google+:

Additional notes: on my CB memory usage didn't seem excessive. Screenshots in bug report show about 0.4gb if memory serves. Also on my windows 8.1 i5-3210 with b6 GB ram, CPU went from 1% to 16%, but its a quad-core so maybe that's why it didn't go up as much as on the CB.
https://plus.google.com/+MichaelMcNeil/posts/BRs5ZWi6TVB

@ghost
Copy link
Author

ghost commented Aug 25, 2014

Sure, while your at it, it might be an idea to make the window scrollable. On all my devices it opens up without a scrollbar on the side, so the info at the bottom is cut off, depending on the screen res, I guess. This occurs even at full-screen. This capture is from my Linux machine, but behaviour is same on my Windows 8.1 and Chromebook. On my Chromebook, I think even more is truncated at the bottom.

screenshot from 2014-08-25 08 11 55

@beaufortfrancois
Copy link
Owner

We are already tracking this weird behaviour at #2

@alfonsojon
Copy link

This issue is especially noticeable on the ARM-based Chromebooks.

@beaufortfrancois
Copy link
Owner

I've tracked this down and it looks the CSS Animation was causing the issue. I've patched this and updated the Web Store App at https://chrome.google.com/webstore/detail/difcjdggkffcfgcfconafogflmmaadco.

Please let me know if it's better for you too.

@alfonsojon
Copy link

Still using a good amount of CPU on my Samsung ARM Chromebook (GPU Process).
screenshot 2014-09-13 at 3 34 17 am
screenshot 2014-09-13 at 3 34 25 am

@jgw96
Copy link

jgw96 commented Jan 1, 2015

Same problem on my Acer c720 chromebook; cog uses about 1.85 gigs of memory. Could the chrome system api's somehow hog memory?

@vivekannan
Copy link

Not sure if these changes would help with the CPU usage but we could try,

  1. Use chrome API event listeners for storage and display.
  2. Should query for the selectors only once during init and not during each update call.

Would love to make a pull. Holler if needed!

@beaufortfrancois
Copy link
Owner

beaufortfrancois commented Mar 6, 2017

I've tried removing updateDisplays and updateStorage completely and it doesn't change anything as far as I can tell.
What we could do is to lower down the interval (500ms) but it makes the CPU usage UI kinda bland ;(

@vivekannan
Copy link

vivekannan commented Mar 6, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants