feat(ui): do not enable pixel-scroll-precision-mode on startup

It sometimes causes a long lock-up of Emacs. I believe this is due to a
known issue where the mode can cause excessive garbage collection while
scrolling, combined with my use of gcmh which prevents GC while actively
using Emacs.

Hence my theory is that pixel scrolling is causing tons of memory to be
consumed, but gcmh prevents the GC from running, until it hits a tipping
point where it GCs hundreds of megabytes of memory.

Or, that's my theory at least :P
This commit is contained in:
2022-10-05 00:21:43 +01:00
parent 8d232d4b2b
commit 938f138ba8

View File

@@ -38,10 +38,7 @@
(pixel-scroll-precision-mode -1)
(setq scroll-margin siren-pixel-scroll--original-scroll-margin)
(setq scroll-preserve-screen-position
siren-pixel-scroll--original-scroll-preserve-screen-position))))
:config
(siren-pixel-scroll-mode +1)))
siren-pixel-scroll--original-scroll-preserve-screen-position))))))
(provide 'siren-pixel-scroll)
;;; siren-pixel-scroll.el ends here