最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why does an Electron.js app respond slow to user inputs? - Stack Overflow

programmeradmin4浏览0评论

I ran 'electron-quick-start' app on my PC with Windows 10 via

npm start

It works, but the app responds to clicks and text typing (e.g. in the Console of DevTool, text inputs) too slow. What is the problem? Google Chrome and other browsers work fine on my PC.

I ran 'electron-quick-start' app on my PC with Windows 10 via

npm start

It works, but the app responds to clicks and text typing (e.g. in the Console of DevTool, text inputs) too slow. What is the problem? Google Chrome and other browsers work fine on my PC.

Share Improve this question edited Sep 11, 2019 at 8:19 John Law asked Nov 2, 2016 at 22:19 John LawJohn Law 4374 silver badges14 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 17

The problem was hardware acceleration. The members of the Electron devteam told me that hardware acceleration may cause input lag.

app.disableHardwareAcceleration(); 

Lag disappeared after writing that mand in main.js.

发布评论

评论列表(0)

  1. 暂无评论