[vim/vim] Popup window image feature is laggy when using kitty graphics protocol (Issue #20460)

1 view
Skip to first unread message

Foxe Chen

unread,
7:19 PM (3 hours ago) 7:19 PM
to vim/vim, Subscribed
64-bitman created an issue (vim/vim#20460)

Steps to reproduce

When a popup window that has an image is present, moving the cursor is laggy and the cursor flickers or disappears momentarily sometimes.

  1. Run this script (the image I used was: PNG image data, 1200 x 1200, 8-bit/color RGBA, non-interlaced
let png = '<some image>'
let dim = split(system('gm identify -format "%w %h" '
            \ .. shellescape(png)))
let [w, h] = [str2nr(dim[0]), str2nr(dim[1])]
call system('gm convert ' .. shellescape(png)
            \ .. ' -depth 8 rgb:/tmp/cat.rgb')
let blob = readblob('/tmp/cat.rgb')
call popup_create('', #{
            \ image: #{ data: blob, width: w, height: h },
            \ line: 1, col: 1, border: [], padding: [0, 0, 0, 0],
            \ })
  1. Move the cursor around

Demo:

https://github.com/user-attachments/assets/e7e6f2f3-1c72-4109-999c-99c361a16a28

Expected behaviour

There should be no lag

Version of Vim

9.2.612

Environment

Operating system: Arch Linux, Wayland
Terminal: kitty 0.47.1 created by Kovid Goyal
$TERM: xterm-kitty
Shell:

GNU bash, version 5.3.12(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20460@github.com>

Reply all
Reply to author
Forward
0 new messages