Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log a warning if task queues exceed deadline by 20ms #4293

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Dec 6, 2022

Fixes #4292


This shouldn't happen in practice if we do good, the idea is for these warnings to get reported back to us so we can split tasks up further.

Here's a simulation I did to test it by tweaking the number to 5ms and changing the texture atlas warmup to perform in a single callback:

image
image

When profiling you don't get a full trace, but this is what it looks like normally (at least in dev):

image

@Tyriar Tyriar added this to the 5.1.0 milestone Dec 6, 2022
@Tyriar Tyriar self-assigned this Dec 6, 2022
@Tyriar Tyriar merged commit 497df06 into xtermjs:master Dec 6, 2022
@Tyriar Tyriar deleted the 4292 branch December 6, 2022 22:20
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.

Warn when tasks queues exceed the task deadline
1 participant