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

Doesn't seem to work on win11 #4

Open
quesada opened this issue Jun 22, 2023 · 2 comments
Open

Doesn't seem to work on win11 #4

quesada opened this issue Jun 22, 2023 · 2 comments

Comments

@quesada
Copy link

quesada commented Jun 22, 2023

Tried v 1.0.1, 1.1.0.
Using all possible combinations of 'native api', and 'async'.
tried notepad, kate (windows), lite XL.
None of them work.

Any idea why?

@averms
Copy link

averms commented Jun 25, 2023

Doesn't work for me either when testing out Notepad. I get a few dots and then "Cannot detect reference pattern".

However it does work when testing terminal emulators like Windows Terminal and mintty. It also works when testing editors like GVim although I am getting crazy high latency numbers (40 ms vs 8 ms on Win 10). I'm hoping this is a measurement issue 😩 .

@frarees
Copy link
Owner

frarees commented Jun 26, 2023

The algorithm used to detect the dots pattern is very fragile and requires the pattern to stay stable through the reading. I've seen some editors where, after a number of dots, the spacing between them is not consistent. One pixel off is enough to make it fail iirc. Font smoothing can also play a role here.

So, a few recommendations:

  • Try disabling font smoothing
  • Play with font size
  • Make sure you're using a monospaced font
  • Reduce the number of chars used (this might be useful if you know it stops working after a number of dots)

Ideally, typometer should be able to understand the pattern and account for slight inconsistencies just fine (part of my effort here was to improve on this area, but there was more work that I originally anticipated).

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