In pycharm go to help -> edit custom vmoptions and paste this config:
-Xmx8192m
-Dsun.java2d.opengl=true
-Dawt.java2d.opengl=true
-Dsun.java2d.opengl.fbobject=false
-Dsun.java2d.metal=false
-Dsun.java2d.xrender=false
-Dsun.java2d.xrender=false
In pycharm go to help -> edit custom vmoptions and paste this config:
-Xmx8192m
-Dsun.java2d.opengl=true
-Dawt.java2d.opengl=true
-Dsun.java2d.opengl.fbobject=false
-Dsun.java2d.metal=false
-Dsun.java2d.xrender=false
-Dsun.java2d.xrender=false