Some people including me have found out that at some time the editor started lagging every 5 seconds or so.
Here is a post in which PacoChan found a solution:
https://answers.unrealengine.com/questions/12933/im-suddenly-getting-some-stuttering.html
That worked at first but when I restarted my computer the problem persisted.
As I found out, typing “set android_home” on the command prompt returned me the environment variable with the android path although I had erased it from the environment variables window.
As I am a noob at and haven’t yet found out how to delete environment variables permanently I have created a .bat file to start the Unreal Engine 4 launcher for me clearing everytime the environement variables.
set android_home=
set java_home=
set ant_home=
cd C:\Program Files\Unreal Engine\Launcher\Engine\Binaries\Win64\
UnrealEngineLauncher.exe
To use it simply copy it in notepad and save it as a .bat file.
This should work in 64bit architecture computers, as I have the engine installed in one.
If anyone, however, could teach me how to delete enviroment vairables forever that would be awesome.
Hope this post helps.