Skip to content

Improve fthrottle2 by using movableTimer;#1470

Open
Eugeny48 wants to merge 1 commit into
masterfrom
fthrottle2
Open

Improve fthrottle2 by using movableTimer;#1470
Eugeny48 wants to merge 1 commit into
masterfrom
fthrottle2

Conversation

@Eugeny48
Copy link
Copy Markdown
Contributor

@Eugeny48 Eugeny48 commented Apr 8, 2025

Google.Chrome.2025-04-08.19-39-13.mp4

I'm not sure if this is really useful, but in the case in the attached video it replaces 4 redraws with 2.

The hover triggers more then 5k calls to interruptibleTimer inside fthrottle2.

@Eugeny48 Eugeny48 requested a review from NikitaFil April 8, 2025 17:05
@Eugeny48
Copy link
Copy Markdown
Contributor Author

Eugeny48 commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

@NikitaFil NikitaFil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for me. One more minor change - maxDelta is in fact minDelta, worth renaming.

Requested review from Yuriy as well, since fthtottle2 and MThrottleMetrics are used in Wigi.

@NikitaFil NikitaFil requested a review from ykuzmenko73 April 10, 2025 14:25
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.

2 participants