wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Slow when scrolling down a file while using nvim

Open gerep opened this issue 1 year ago • 3 comments

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

I'm using the PoPOS Gnome.

WezTerm version

20240203-110809-5046fc22

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

On the left side, I'm running GNOME Terminal. On the right, Wezterm.

The slowness is evident when I scroll down or up the file.

Screencast from 11-07-2024 04:16:33 PM.webm

To Reproduce

No response

Configuration

This is all my config—the one I use in the video.

-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This table will hold the configuration.
local config = {}

if wezterm.config_builder then
  config = wezterm.config_builder()
end

config.audible_bell = 'Disabled'
config.color_scheme = 'Rosé Pine Moon (Gogh)'
config.font = wezterm.font("Hack Nerd Font Mono", {weight="Regular", stretch="Normal", style="Normal"})
config.font_size = 12

-- timeout_milliseconds defaults to 1000 and can be omitted
config.leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 }
config.keys = {
  {
    key = '%',
    mods = 'LEADER|SHIFT',
    action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
  },
  {
    key = '$',
    mods = 'LEADER|SHIFT',
    action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
  },
  -- Send "CTRL-A" to the terminal when pressing CTRL-A, CTRL-A
  {
    key = 'a',
    mods = 'LEADER|CTRL',
    action = wezterm.action.SendKey { key = 'a', mods = 'CTRL' },
  },
  {
    key = 'Z',
    mods = 'CTRL',
    action = wezterm.action.TogglePaneZoomState,
  },
}

return config

Expected Behavior

For the scrolling to be smooth as it is on Gnome Terminal.

Logs

16:25:37.255 INFO wezterm_gui > Spawned your command via the existing GUI instance. Use wezterm start --always-new-process if you do not want this behavior. Result=SpawnResponse { tab_id: 1, pane_id: 2, window_id: 1, size: TerminalSize { rows: 24, cols: 80, pixel_width: 640, pixel_height: 384, dpi: 0 } }

Anything else?

Debug Overlay wezterm version: 20241104-083404-51c794ac x86_64-unknown-linux-gnu Window Environment: X11 GNOME Shell Lua Version: Lua 5.4 OpenGL: llvmpipe (LLVM 15.0.7, 256 bits) 4.5 (Compatibility Profile) Mesa 24.0.3-1pop1~1711635559~22.04~7a9f319 Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit 16:25:37.329 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)

gerep avatar Nov 07 '24 19:11 gerep

Not entirely sure if this would solve your problem but have you tried max_fps?

kraanzu avatar Nov 25 '24 04:11 kraanzu

same for me - X11, empty config. Scrolling is clunky. I compared to konsole where it also is smooth. Interestingly, I switched to Wezterm ~1y ago, because it was exactly the opposite.

MultiCoreNop avatar Aug 21 '25 13:08 MultiCoreNop

I experience the same issue on Windows, compared to Windows Terminal scrolling in nvim is clunky/slower in wezterm. Tried changing gpu adapters but it didn't help

sebastianstudniczek avatar Dec 06 '25 17:12 sebastianstudniczek