macvim-dev / macvim-dev/macvim

Ligatures are affecting scroll performance

Offen
#254 4 Kommentare 10 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Vim Script
Sterne
7.9k
Forks
691
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I am using the FiraCode font with macligatures set. When scrolling down, MacVim seems to hiccup a bit, but when I scroll up it is very smooth. When I do not set macligatures it scrolls fine (but doesn't show the cool characters). I am testing the scroll speed using both my touchpad and jk keys and my key repeat is set at 1 which is 15ms.

This was originally posted in FiraCode's issues, but the solution to the problem probably lies in improving macligatures support.

OSX 10.11, MacbookPro Retina

Followed the instructions to

set macligatures
set guifont=Fira\ Code:h12

Doing some dumb testing against Activity Monitor, it looks like the CPU load when I scroll down is much lower (~%60) than when I scroll up (150-200%), so the downscrolling seems to be inhibiting the scroll rather than taking on a huge CPU load and causing framerate hiccups.

Looking around for some possibly related topics:
Guy with the same issue (Scroll to Amadeus Demarzi)
thread related to listchars

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den Bericht in MacVim unter macOS mit Fira Code zu reproduzieren, indem du set macligatures und die aufgeführte guifont-Einstellung verwendest, und vergleiche dann das Scrollen nach oben und unten mit und ohne Ligaturen. Lies die verlinkte FiraCode-Issue und den zugehörigen listchars-Thread als Kontext; abgeschlossen ist die Arbeit, wenn beim Scrollen die gemeldete richtungsabhängige Verlangsamung bei aktiviertem macligatures nicht mehr auftritt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
macos
Bereich
desktop, performance
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.