pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.62k stars 518 forks source link

Run as Scratchpad or in Debug mode works extremely slow #989

Open dmi7ry opened 5 years ago

dmi7ry commented 5 years ago

If I start Run as Scratchpad then any user's input (keyboard, mouse) and IDE's output works with big lags. It looks like IDE updates everything once per second or something like this. The process takes a bit more than one CPU's core (about 7.5% - 9%; one core is 6.25%)

Same with Debug mode.

ZeroBrane Studio 1.80. It worked fine on my old computer with Windows 7, but works very slow on my new computer with latest Windows 10.

How can I solve this?

pkulchenko commented 5 years ago

@dmi7ry, I run it on Windows 10 and Windows 8 and haven't noticed any lag. When you use Ran as Scratchpad, the application is restarted on any change you introduce in the editor. There have been a couple of changes related to Scratchpad performance, so you may want to try with the latest master branch, but those wouldn't have any impact on the regular Debug performance.

If it's still slow when using the master branch, can you also check the wxwidgets-upgrade-313 branch, as it's using the latest wxwidgets/wxlua code to see if it provides better performance? I'll check it on my win10 machine again, but as I said, I don't see any lag there, so maybe it's related to the plugins you have or your IDE configuration...