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

High CPU usage when scrolling on macOS #4998

Closed
tlichard opened this issue Jun 23, 2019 · 8 comments
Closed

High CPU usage when scrolling on macOS #4998

tlichard opened this issue Jun 23, 2019 · 8 comments
Labels
bug qtwebengine stale Issues which have been closed automatically due to inactivitiy.

Comments

@tlichard
Copy link

@tlichard tlichard commented Jun 23, 2019

It seems to me that RStudio 1.2.1335 for MacOS uses too much CPU for simple GUI interactions that should not be that demanding, e.g. scrolling. When scrolling through my RScript, the RStudio process often uses 60% of CPU and the QtWebEngineProcess 100%. I noticed because fans often started spinning audibly when I was scrolling through scripts. I tried forcing the OpenGL option in the settings, as well as unchecking the Use GPU blacklist and driver workarounds options. I also tried forcing software rendering. I did not notice much difference with either of those settings. Using the default Textmate theme. It happens even with empty global environment and no packages loaded, and with relatively short scripts (less than 100 lines).

I tried also the preview (1.2.1541) version, but the problem persists.

My configuration:
MacBook Pro (Retina, 13-inch, Mid 2014)
2,6 GHz Intel Core i5
8 GB 1600 MHz DDR3
Intel Iris 1536 MB
MacOS 10.14.5

@ronblum
Copy link
Contributor

@ronblum ronblum commented Jun 24, 2019

@bouli80 Thank you for reporting this. We'll check it out as we work on future development of RStudio.

@ronblum ronblum added the bug label Jun 24, 2019
@MarkErik
Copy link

@MarkErik MarkErik commented Jun 27, 2019

I am also seeing the same behaviour. If I just slowly scroll, click, scroll, click:

The QtWebEngineProcess will use about ~135% CPU
RStudio will use 35%

RStudio: 1.2.1541
macOS: 10.14.4
iMac 2015 - Retina 27"
Quad-core 3.2Ghz i5
24GB Ram

@nehera
Copy link

@nehera nehera commented Jul 17, 2020

I am having the same problem with RStudio @MarkErik or @bouli80 did you find a solution?

@FrancoisR95
Copy link

@FrancoisR95 FrancoisR95 commented Jul 21, 2020

I have a similar problem with RStudio 1.3.1056 on Windows 10 (64 bit), I don't know if it's the same root issue or not:
While doing nothing else than very simple GUI interactions (e.g. moving the cursor while editing a script, or scrolling), the CPU spikes for a few seconds up to almost 100%, making the ventilator ventilate (noisy). The process rsession.exe is the one taking ressources. When editing a file, this happens about twice per minute.
I experienced the same issue with RStudio 1.3.959, but I didn't notice such thing when I was working with RStudio 1.2.5042.

If I scroll using the "up" or "down" arrows, the CPU gets much higher than if I scroll with the "Page UP"/"Page DOWN" arrows.

When, in the "R general->Advanced" options, I change "Rendering engine" from "Auto-detect" to "Software", it might improve a little but it does not seem to change much.

My system has got 16 GB RAM and an Intel Core i3-3220 CPU @ 3.30 GHz..

@tlichard
Copy link
Author

@tlichard tlichard commented Jul 21, 2020

@nehera: No solution for me. I suspect it may be connected to qt, because other qt apps (such as lyx) exhibit similar behavior.

@nehera
Copy link

@nehera nehera commented Jul 23, 2020

@FrancoisR95 @bouli80 I found the cause of the problem on my end.

I was running a model with a large number of output files (in the 5000 range) and the RStudio was experiencing problems rendering the large number of changes into the GUI. When I hovered over the Git box in RStudio, QtWebEngineProcess spiked in CPU %. I have since reduced the number of output files in the syncing directory and experienced no problems.

I have the following device: MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports); 2.3 GHz Quad-Core Intel Core i7; 16 GB 3733 MHz LPDDR4X; Intel Iris Plus Graphics 1536 MB

All the best,
A

@stale
Copy link

@stale stale bot commented Feb 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the stale Issues which have been closed automatically due to inactivitiy. label Feb 5, 2021
@stale
Copy link

@stale stale bot commented Feb 19, 2021

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug qtwebengine stale Issues which have been closed automatically due to inactivitiy.
Projects
None yet
Development

No branches or pull requests

5 participants