terrychou / iVim

A vim port to iOS.
598 stars 35 forks source link

Slow Input #193

Closed GregoryShields closed 3 years ago

GregoryShields commented 3 years ago

First off, I'm grateful that this project exists at all, so please do not take my complaints as ingratitude.

Maybe it's just me, but when I type into iVim there is a very noticeable lag between the time I type the letter and the time it appears on my screen.

Is this normal? If so, then I can only imagine that there are some incredible inefficiencies somewhere in the translation to iOS.

Also, the screen on my iPad Pro has rounded corners. Since iVim uses screen coordinates, the character in the upper left corner gets cut off. It sure would be nice to inset the Vim interface a few pixels to prevent this.

terrychou commented 3 years ago

The only input lag I have encountered is right after switching auto-restore from off to on. Could you re-launch iVim or your device, to see whether this issue goes away?

As to the content inset, I will add an option in settings for you to customize them.

GregoryShields commented 3 years ago

Thanks for the feedback and your efforts, Terry.

I’ll try what you are asking.

ahayman commented 3 years ago

@GregoryShields I've found another issue with laggy text input here: https://github.com/terrychou/iVim/issues/194#issue-829205504

It's kind of a specific use-case (code folding for markdown), but if you do have that enabled, it could be part of the problem.

terrychou commented 3 years ago

@GregoryShields it ends up that instead of adding a setting option, I change to make iVim to automatically layout text to safe area on iPad Pros. Would you like to have a test on this? If so, please give me an email address for me to send you a TestFlight invitation.

terrychou commented 3 years ago

@GregoryShields email seems starred out...

terrychou commented 3 years ago

I need one email address from you to send the TestFlight invitation. However, all the addresses in your messages look like ***@***.***.

GregoryShields commented 3 years ago

I sent you an email at your public email address which is terrychoucn@gmail.com

Thanks

terrychou commented 3 years ago

@GregoryShields got it and invitation sent.

GregoryShields commented 3 years ago

It works great! No more slow input and no more cut off text. Thanks for sending me the iVim Beta, Terry. Thanks to Aaron for your feedback as well, though I did not look at the issue you mentioned.

I will be reading the iVim Help text and experimenting with getting my configuration (vimrc, etc.) integrated.

Sorry for me being slow in getting to this. I have some health issues.

terrychou commented 3 years ago

Great! I will include it in the next update to App Store. As to the slow reply, no problem and please take care.