You are not logged in.

#1 2018-03-21 09:53:03

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Termite slow

Hello,

I recently decided that I would give a try to termite, so I am completely new to it. Before that I used to use urxvt.

The problem is that I find it really slower than urxvt. For example when scrolling in Neovim it lags a bit. I didn't have any problems with urxvt.

Here is some information:

$ termite -v
termite v13
$ pacman -Qs termite
local/termite 13-1
    A simple VTE-based terminal
local/termite-terminfo 13-1
    Terminfo for Termite, a simple VTE-based terminal
$ nvim -v
NVIM v0.2.3-874-g739fb93a9
$ cat /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "AccelMethod" "sna"
  Option      "TearFree" "true"
EndSection

I am under gnome-shell, and I don't have any graphic cards, I only use the one integrated in my CPU (i7 8700k).

For the graphic drivers I have installed:

$ pacman -Qs mesa
local/glu 9.0.0-4
    Mesa OpenGL Utility library
local/mesa 17.3.6-1
    an open-source implementation of the OpenGL specification
local/vulkan-intel 17.3.6-1
    Intel's Vulkan mesa driver

and also:

local/xf86-video-intel 1:2.99.917+812+g75795523-1 (xorg-drivers)
    X.org Intel i810/i830/i915/945G/G965+ video drivers

I also noticed that it was lagging when moving the cursor right or left.

[EDIT]
I forgot to include my termite config:

[options]
font = Iosevka Term Compressed 15
allow_bold = false
cursor_shape = ibeam

[colors]
# hard contrast: background = #1d2021
background = #282828
# soft contrast: background = #32302f
foreground = #ebdbb2
foreground_bold = #ebdbb2

# dark0 + gray
color0 = #282828
color8 = #928374

# neutral_red + bright_red
color1 = #cc241d
color9 = #fb4934

# neutral_green + bright_green
color2 = #98971a
color10 = #b8bb26

# neutral_yellow + bright_yellow
color3 = #d79921
color11 = #fabd2f

# neutral_blue + bright_blue
color4 = #458588
color12 = #83a598

# neutral_purple + bright_purple
color5 = #b16286
color13 = #d3869b

# neutral_aqua + faded_aqua
color6 = #689d6a
color14 = #8ec07c

# light4 + light1
color7 = #a89984
color15 = #ebdbb2

[/EDIT]

Thank you very much in advance.

Last edited by Scriptor (2018-03-21 10:07:55)

Offline

#2 2018-03-21 11:41:12

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

gnome-shell, and I don't have any graphic cards

So most likely a wayland session ("loginctl session-status" or just "xrandr" to confirm) - tried gnome on xorg behavior?

Online

#3 2018-03-21 12:52:29

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

Thank you for your response.

$ xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
HDMI1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 550mm x 310mm
   2560x1440     59.95*+
   2048x1152     60.00  
   1920x1200     59.95  
   1920x1080     60.00    60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1200x960      59.99  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

And the result is the same under Xorg.

Thank you very much in advance

Offline

#4 2018-03-21 13:14:15

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

The xrandr output suggests you *are* on xorg, so you should try wayland first.

Online

#5 2018-03-21 14:02:48

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

Thank you very much for your answer.

I also tried under wayland and the result is the same.

$ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
XWAYLAND0 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 550mm x 310mm
   2560x1440     59.91*+

Thank you very much in advance.

Offline

#6 2018-03-21 14:15:21

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

The question is whether it has impact on the performance. If not, we can pretty much rule out any graphics config and determine a problem with termite.
You may also try other VTEs using vte3-ng and compare them to such/them (if they support both) using vte3. Notice that vte3 and vte3-ng seem to conflict, so you can not install termite as long as you try eg. terminator on top of vte3.

Online

#7 2018-03-21 14:40:42

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

Thank you for your answer.

There doesn't seem to be any difference concerning the performance whether termite is run under Xorg or Wayland.

I tried terminator with vte3 (I removed vte3-ng), and there seems to be a slight improvement concerning the performance. But when I scroll down in vim for example, the scrolling is really not as smooth as in urxvt.

Thank you very much in advance and for all your help.

Offline

#8 2018-03-21 15:13:24

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

Is there high CPU load? Does the used font matter?
Also please elaborate on "smooth" and "lag": is there a delayed reaction to input or is the slow down rather building up? Is is slow for programatic scrolling?
Is this exclusive to *vim or do you get similar issues in bash?

Online

#9 2018-03-21 15:31:09

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

Thank you for your answer.

The font doesn't seem to matter, I tried the default one and Iosevka (the one I normally use).

To be precise, I don't use bash, only zsh. The command line responds well, it has more to do with the input (moving the cursor) and it seems to be constant. I mostly talk about vim because it is where I noticed that scrolling down lags. It's like if it was really heavy.

Since it didn't really happen with urxvt, I thought that it might come from termite.

I don't know if it's of any help, but I also tried alacritty, and I didn't have any problems, so I'm beginning to think that it might come from vte terminals. I also tried with gnome-terminal and the result was same as with termite.

Thank you very much in advance and for all your help.

Offline

#10 2018-03-21 21:14:42

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

You don't have to thank me all the time, but

Is there high CPU load?

As for other contexts: what about scrolling in eg. "less" or "nano"?

Online

#11 2018-03-21 21:21:58

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Termite slow

Does it make a difference if you uninstall xf86-video-intel and use the inbuilt modesetting driver instead?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#12 2018-03-22 13:26:51

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

Thank you for your answers.

seth wrote:

You don't have to thank me all the time, but

Is there high CPU load?

As for other contexts: what about scrolling in eg. "less" or "nano"?

So, no there isn't any high CPU load. With less or nano it seems to be a bit smoother than in vim.

Slithery wrote:

Does it make a difference if you uninstall xf86-video-intel and use the inbuilt modesetting driver instead?

I have tried this. Whether it is on wayland or Xorg doesn't seem to make any difference.

I even tried with enabling these options:

options i915 enable_guc_loading=1 enable_guc_submission=1

But overall, even when writing in prompt and when moving the cursor or scrolling in vim it seems jerky, not as smooth as in urxvt.

Thank you very much in advance.

Offline

#13 2018-03-22 15:38:18

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

What if you disable cursor blinking?
Can you try to quantify the "slowness"? Are we talking about talking about 10ms or 100ms or 1000ms delays?

Online

#14 2018-03-22 16:17:23

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

What if you disable cursor blinking?

Thank you for the suggestion but it didn't change anything.

Can you try to quantify the "slowness"? Are we talking about talking about 10ms or 100ms or 1000ms delays?

I'm sorry but it's really hard to quantify. To provide a bit more information, when scrolling down in vim, in termite, it seems to jerk. In urxvt it really seems light and smooth.

Thank you very much for all your help but unfortunately I'm beginning to think that there's not much to do.

Offline

#15 2018-03-22 20:18:25

seth
Member
Registered: 2012-09-03
Posts: 51,372

Re: Termite slow

It's really hard to judge on the issue from your descritptions - maybe you can record the behavior (using eg. https://www.archlinux.org/packages/comm … ydesktop/)?
And of course: you could just use urxvt (which comes w/o the gtk trail of libvte and does a fairly good job anyway...)

Online

#16 2018-03-22 22:32:53

Scriptor
Member
Registered: 2011-01-16
Posts: 144

Re: Termite slow

I tried to record the behavior but unfortunately we don't really see the difference between the urxvt and termite.

And of course: you could just use urxvt (which comes w/o the gtk trail of libvte and does a fairly good job anyway...)

What I really liked in termite was the support of true colors, and how fonts are handled (I don't have to specify other fonts to be able to display unicode).

So, thank you very much for trying and for all your help and all your time.

Offline

Board footer

Powered by FluxBB