title: Electron.js app freezes after an hour unused
body: <p>I wrote an app with electron.js and vuetify.js for Windows 64bit; everything is ok about the app and its usual use case. The problem is: when the app is running and the user doesn't do anything with it, I mean leave it running (app main window is open) without any other processing, after about 1 hour, when the user tries to work with the program, the program hangs up and does not work, and the user is forced to close and reopen the program.  </p>
  
  <p>The same problem happens when the user runs the program and takes Windows to Hibernate mode, and after the restart of Windows, the program does not respond and and does not work.</p>
  
  <ul>
  <li>electron version : 3.0.0</li>
  </ul>
  
  <p><strong>Solution:</strong></p>
  
  <p>the problem was solved with just one line code in the background.js file of electron, the problem came from <strong>Hardware Acceleration</strong> and because of that the app use more resources and and some hours make app not respond</p>
  
  <pre><code>app.disableHardwareAcceleration();
  </code></pre>
  
  <p>by adding above code in the background process file the app runs and work very fast</p>