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

Main thread is blocked when rendering #343

Closed
bghgary opened this issue Feb 17, 2022 · 1 comment · May be fixed by #630
Closed

Main thread is blocked when rendering #343

bghgary opened this issue Feb 17, 2022 · 1 comment · May be fixed by #630
Milestone

Comments

@bghgary
Copy link
Contributor

bghgary commented Feb 17, 2022

See

g_graphics->StartRenderingCurrentFrame();
g_update->Start();
g_update->Finish();
g_graphics->FinishRenderingCurrentFrame();

The code is currently calling FinishRenderingCurrentFrame immediately following StartRenderingCurrentFrame. FinishedRenderingCurrentFrame will immediately block waiting for the JS thread to finish doing its part. Ideally, these calls should be backwards. StartRenderingCurrentFrame should be called as soon as possible and FinishRenderingCurrentFrame should be called as late as possible. There should be a small gap between FinishRenderingCurrentFrame and the next StartRenderingCurrentFrame.

@bghgary
Copy link
Contributor Author

bghgary commented Sep 10, 2024

Closing in favor of #1416

@bghgary bghgary closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
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 a pull request may close this issue.

2 participants