Skip to content

Increase PROCESS_DELAY throttle window from 50ms to 200ms#3

Merged
prlanzarin merged 2 commits intomasterfrom
copilot/update-process-delay-throttle
Feb 20, 2026
Merged

Increase PROCESS_DELAY throttle window from 50ms to 200ms#3
prlanzarin merged 2 commits intomasterfrom
copilot/update-process-delay-throttle

Conversation

Copy link

Copilot AI commented Feb 20, 2026

High-frequency cursor updates cause the client to freeze due to an insufficient throttle window. Increasing the delay reduces processing frequency and prevents UI lockups under load.

Changes

  • static/js/main.js: PROCESS_DELAY increased from 50200
// Before
const PROCESS_DELAY = 50;    // 50ms throttle window

// After
const PROCESS_DELAY = 200;    // 200ms throttle window
Original prompt

Problem

The client is freezing when there are lots of cursor updates due to the throttle window being too short.

Solution

In the file static/js/main.js, increase the PROCESS_DELAY constant from 50 (50ms) to 200 (200ms) to help reduce the load on the client.

Current code (line 10):

const PROCESS_DELAY = 50;    // 50ms throttle window

Expected code:

const PROCESS_DELAY = 200;    // 200ms throttle window

This change will increase the throttle window, reducing the frequency of cursor trace processing and helping prevent client freezes when there are many simultaneous updates.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: germanocaumo <2726293+germanocaumo@users.noreply.github.com>
Copilot AI changed the title [WIP] Increase PROCESS_DELAY to reduce client freezing Increase PROCESS_DELAY throttle window from 50ms to 200ms Feb 20, 2026
Copilot AI requested a review from germanocaumo February 20, 2026 14:11
@germanocaumo germanocaumo marked this pull request as ready for review February 20, 2026 14:13
@prlanzarin prlanzarin merged commit 7010b40 into master Feb 20, 2026
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants