Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely low perfomance and lags with emoji lists #54

Open
amarao opened this issue Apr 17, 2018 · 3 comments
Open

Extremely low perfomance and lags with emoji lists #54

amarao opened this issue Apr 17, 2018 · 3 comments

Comments

@amarao
Copy link

amarao commented Apr 17, 2018

Steps to reproduce:

  1. Create a new document in xi-gtk
  2. Copy content of https://getemoji.com/ page from a web-browser
  3. Paste that content into xi-gtk
  4. Move cursor somewhere in the middle (to the national flags)
  5. Try to move cursor around

Expected behavior: no lags.
Actual behavior: delays up to 200ms per each cursor move in any direction. CPU consumption goes from 3% to 60% for just a cursor movement.

Environment: freshly compiled release version of xi-core, commit 16a00f6 for xi-gtk, Ubuntu 18.04 86_64, CPU Intel(R) Core(TM) i7-7560U CPU @ 2.40GHz

@eyelash
Copy link
Owner

eyelash commented Apr 17, 2018

I can't reproduce this neither on Ubuntu 17.10 nor on Debian Testing. Note that for some emojis (like flags) you have to press the left or right arrow key multiple times before the cursor actually moves on screen (probably because they consist of multiple Unicode code points but that's a missing feature of xi-core).

@cmyr
Copy link

cmyr commented Apr 18, 2018

Yea core doesn't handle cursor movement through emoji (or other complex graphemes) although that should be fixed soon: xi-editor/xi-editor#520

@amarao
Copy link
Author

amarao commented Apr 18, 2018

I'd agree, that part of the lag is due to stops inside emoji, but I want to point, that when moving cursor through faces (colored), CPU consumption goes way up. ~30% of one core for xi-gtk process and ~80% for Xorg. (intel driver). It does not happens on normal text: ~7% for xi-gtk at max and 10% for xorg.

Can it be related to the way emoji are drawn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants