Hi Clutterstack,

Try addding this field to your state tiddler: *throttle.refresh*

I'm using TW quite heavily on mobile (in addition to desktop) and after 
raising issues regarding typing performance on mobile 
<https://groups.google.com/g/tiddlywiki/c/IqdgBUkrgbA/m/4RNWLf7GCgAJ> Jeremy 
was kind to add a throttle.refresh 
<https://tiddlywiki.com/static/RefreshThrottling.html> setting (code 
<https://github.com/Jermolene/TiddlyWiki5/commit/6089c4de2921df0f76f605f1830fb2c04548f73c>),
 
starting with TiddlyWiki version 5.1.22 (if I remember correctly).

The way it works for me (as in, issue solved permanently) is that my 
edit-text widgets use "$:/typing" as the target tiddler to type into. That 
tiddler has the field "throttle.refresh" with the value "$:/typing". 
Performance is comparable to the one you get when typing in edit mode.

One thing to remember is that although you can now experience lag-free 
typing, your changes won't be committed until the wiki can actually 
refresh. So, I'm wrapping my edit-text widgets in a keyboard widget that 
listens for the enter key. When I'm done typing and hit enter, then an 
action widget populates the value taken from the "$:/typing" tiddler into a 
tiddler of choice and the $:/typing tiddler itself is cleared.

It's smooth and easy but you lose the possibility of searching with live 
updating. It all depends on what is more important to you. I personally aim 
for peak performance, whether desktop or mobile and this solution provides 
that.

Hope this helps. Please let me know if you need any help with this or any 
example code, etc.

Cheers,
-Hubert


On Friday, 2 April 2021 at 03:16:20 UTC+1 clutterstack wrote:

>
> Thanks, Mark. No, I used a separate state tiddler. It works fine, it's 
> just a bit hard to type. I've typed a huge amount into laggy widgets over 
> the past year; I just thought it was my fault and that I'd fix my plugins 
> eventually. Now I'm not sure I can fix them without getting "closer to the 
> metal."
> On Thursday, April 1, 2021 at 9:54:17 PM UTC-4 Mark S. wrote:
>
>> Are you trying to edit text or fields in the SAME tiddler that your edit 
>> widget is in? Because that will cause problems. You have to edit the 
>> contents of some other tiddler.
>>
>> On Thursday, April 1, 2021 at 5:53:32 PM UTC-7 clutterstack wrote:
>>
>>> Hi all,
>>>
>>> I've been trying all sorts of things to make typing in my personal 
>>> plugins less laggy, and I've realised that all I have to do to make typing 
>>> laggy is to do it within an edit-text widget in view mode, no plugin 
>>> required. I can get down to 5fps typing in an edit-text widget in a new 
>>> tiddler on tiddlywiki.com (it's almost 10x as fast in the normal 
>>> tiddler editor).
>>>
>>> Has anyone else noticed this? Is this a well-known thing? I haven't 
>>> found a lot of clues but my google-fu may be weak today.
>>>
>>> Thanks,
>>> Chris
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/66e1626b-460a-4c21-b011-2d57cd3ec3a9n%40googlegroups.com.

Reply via email to