]> git.gir.st - VimFx.git/commit
Improve CPU usage in Hints mode
authorSimon Lydell <simon.lydell@gmail.com>
Tue, 26 Jan 2016 07:31:39 +0000 (08:31 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Tue, 26 Jan 2016 07:31:39 +0000 (08:31 +0100)
commitf2f5fe6687e7aafd9705f81b39c188f5e114e59e
tree64b294ccf604ccecc360382d17f5c2a28effd0ed
parentf9a56d3175f68b6ba9ec1dea1418442494fe8498
Improve CPU usage in Hints mode

Raising the "check for marker element movements" interval from 0 to 15 results
in no noticeable CPU usage change on my system, while still allowing markers to
move smoothly. Setting it to 20 results in noticeable stutter.

This commit also add the `hints_sleep` pref to control the interval, or disable
the feature altogether.

Additionally, the interval now doesn't run at all for the `zF` command.
Previously, it ran as usual, but didn't do anything (as marker movement isn't
supported (YAGNI) for the `zF` command).

Fixes #678.
documentation/options.md
extension/lib/commands.coffee
extension/lib/defaults.coffee
extension/lib/modes.coffee
Imprint / Impressum