Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0 laggy typing experience [closed]

I have an extremely disturbing laggy Android Studio editor. I read all proposed optimisation suggestions on the stack and did following things to speed it but nothing helped.

  • Increased the Heap Size in VM options with following options
  • Disabled all the plugins regarding git, svn etc.
  • Checked the followings in Compiler settings
  • Compiler independent modules
  • --offline in command line options
  • Configure on demand

My Device is an MBP from middle 2015 with 16 GB Ram and 512 GB SSD HD.The project is a Java Project which was ok on my other laptop. Any other things I can do?

like image 281
Ilker Baltaci Avatar asked Nov 15 '17 13:11

Ilker Baltaci


People also ask

Why is my Android typing lagging?

Clear Keyboard Cache Over time, such data can lead to keyboard typing lag on Android. Let's clear the keyboard cache. Step 1: Long tap on the Gboard app icon and open the app info menu. Step 2: Go to Storage & cache menu and tap on the Clear cache option.

Why does it lag when I type?

Typing lag most often occurs as the result of a lack of memory. Adding additional RAM to the memory slots can ameliorate this lag. However, even computers with sufficient memory can experience poor keyboard performance.

Why is my keypad slow?

Keyboard lags can slightly be caused by frequent copying on the Clipboard. A major means of easing multiple typing on Android devices is by making copies of the text on the Clipboard, and pasting it on the selected avenue.


1 Answers

Thank you guys for all advices. After having eye cancer with laggy editor I finally managed to speed it up. Fortunately It was not only the fault of the Android Studio itself, so that we can't blame it directly =)

As @FierceFox suggested I saw that windows server was working quite hard in the background and eating my CPU as well my memory.

sudo rm /Library/Preferences/com.apple.windowserver.plist
sudo rm ~/Library/Preferences/ByHost/com.apple.windowserver*.plist

Restart MacOSX with PRAM reset (hold the P and R keys while holding down the option (⌥) and command (⌘) keys before the gray boot screen appears)

Now My Editor is working fine again.

UPDATE:

As soon as I choose scaled resolution, the editor gets laggy again.! So it only works fine in default resolution.The problem is actualy only valid for Android Studio.In Xcode it seems to be OK.

like image 92
Ilker Baltaci Avatar answered Oct 20 '22 14:10

Ilker Baltaci