Skip to content

Laggy rendering for fast moving objects with JetBrains Mono #6743

Closed
@milan-panta

Description

@milan-panta

Describe the bug
Kitty was being choppy when scrolling quickly through files so I ran cmatrix to see if there were visual rendering issues. It was choppy with lots of stutters but it went back to normal after switching to the no ligatures version of the same font.

To Reproduce
Steps to reproduce the behavior:

  1. Open kitty with a font with ligatures (like JetBrains Mono).
  2. Scroll quickly through large files or run a program that renders the screen a lot of times like cmake, or asciiquarium.
  3. Observe.

Screenshots

kitty-ligatures-issue.mov

The video shows cmatrix running on kitty with Jetbrains Mono, on kitty with Jetbrains Mono NL, and on alacritty with Jetbrains Mono. The choppy one is kitty using Jetbrains Mono. The stuttering issue is not exclusive to cmatrix, it was simply the clearest way of showing the difference in smoothness.

Environment details

kitty 0.30.1 (6a3529b7c2) created by Kovid Goyal
Darwin Milans-MacBook-Pro.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020 arm64
ProductName:		macOS ProductVersion:		14.0 BuildVersion:		23A344
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/milan/.config/kitty/kitty.conf

Config options different from defaults:
font_family JetBrains Mono
font_size   18.0

Important environment variables seen by the kitty process:
	PATH                                /Applications/kitty.app/Contents/MacOS:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
	LANG                                en_CA.UTF-8
	SHELL                               /bin/zsh
	USER                                milan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions