Giter VIP home page Giter VIP logo

Comments (7)

Alexey-T avatar Alexey-T commented on June 16, 2024 1

added option "ui_timer_idle": 1000, and also removed that limit 500 for "py_change_slow".
Limit for both is now 10, because 50 is the min Win32 timer interval (per docs)

from cudatext.

veksha avatar veksha commented on June 16, 2024

instant reaction of LSP diagonstics is when i'm using on_change instead of on_change_slow. no delay at all!
but we need to use on_change_slow.

if I set py_change_slow option to 1 and set TimerAppIdle.Interval := 1; - i'm still not fast enough as on_change,
there is something else that adds to delay.

comparison of on_change vs on_change_slow:

cudatext_XeVU2W4pDd.mp4

so even fastest on_change_slow is still slower then on_change. why? some another timer?

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

if I set py_change_slow option to 1 and set TimerAppIdle.Interval := 1; - i'm still not fast enough as on_change,
there is something else that adds to delay.

yes, is it IDLE timer, so it starts to work when no keyboard/mouse input exist.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

what if LSP uses on_change, and it starts API-made timer (with small delay e.g. 100)?
of course, you need to stop&start the timer (so often occuring on_change won't be slow).

from cudatext.

veksha avatar veksha commented on June 16, 2024

if I set py_change_slow option to 1 and set TimerAppIdle.Interval := 1; - i'm still not fast enough as on_change,
there is something else that adds to delay.

yes, is it IDLE timer, so it starts to work when no keyboard/mouse input exist.

oh. i have found 500ms here:
UiOps.PyChangeSlow:= Max(500, cfg.GetValue('py_change_slow', UiOps.PyChangeSlow));

changed to 1 and now it's same speed as on_change (with TimerAppIdle.Interval = 1 and py_change_slow == 1)

can we allow user to specify 1ms for py_change_slow if he wants to boost speed?
also TimerAppIdle.Interval is 1000 by default, can we set it to very small value like 10?

what if LSP uses on_change, and it starts API-made timer (with small delay e.g. 100)? of course, you need to stop&start the timer (so often occuring on_change won't be slow).

yes. additional work. we can just tune timers i mentioned and user will be allowed to speed up on_change_slow to the on_change speed if he wants. what do you think?

from cudatext.

veksha avatar veksha commented on June 16, 2024

thanks. will test it now.

from cudatext.

veksha avatar veksha commented on June 16, 2024

working as expected.

from cudatext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.