by Abishek_Muthian · 8y ago · 0 comments
Tip: If you have dual GPU system try launching AS, android emulator, Idea, WS, Pycharm, with the discrete GPU i.e (Linux/ATI in my case).
'DRI_PRIME=1 ../studio.sh'
bash -c "LD_PRELOAD='/usr/lib/libstdc++.so.6' DRI_PRIME=1 ../android-sdk/emulator/emulator -avd Nexus_5X_API_27 -gpu host"
I have seen considerable improvements in productivity for the same codebase with 3rd gen corei5 with ATI 7400M series GPU vs 7th gen corei5 with intel integrated gpu both having same memory. The OS setup is same.
Obviously, java by itself isn't using the VRAM; I assume the visual rendering of IDE's & emulators use it and leaves enough RAM for the AS to gulp.