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

Remove redundant thread sync counter draw_pending #35758

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

zmanuel
Copy link
Contributor

@zmanuel zmanuel commented Jan 30, 2020

The functions that used it already use a threadsafe FIFO queue
to communicate between threads and a sync to have the main thread
wait for the render thread.

Fixes #35718

@zmanuel
Copy link
Contributor Author

zmanuel commented Jan 30, 2020

Serves the same purpose as #35759. I prefer this one.

Correctness depends on my understanding of what CommandQueueMT does.

@akien-mga akien-mga added this to the 4.0 milestone Feb 10, 2020
@akien-mga akien-mga requested a review from reduz February 10, 2020 09:51
@Calinou
Copy link
Member

Calinou commented Mar 20, 2021

Since VisualServer was replaced with RenderingServer in the master branch, this pull request should likely be remade against the 3.x branch and tested there again. Note that there have been significant changes to multi-threading in both 3.x and master too.

The functions that used it already use a threadsafe FIFO queue
to communicate between threads and a sync to have the main thread
wait for the render thread.

Fixes godotengine#35718
@zmanuel zmanuel requested a review from a team as a code owner March 21, 2021 13:46
@zmanuel
Copy link
Contributor Author

zmanuel commented Mar 21, 2021

I updated this PR to current master, including system rename and multithreading architecture change (easy because it's just removing a thing and its use). If you really want this in 3.x as well, I prepared #47232.

@reduz
Copy link
Member

reduz commented Jun 22, 2022

Sorry it took a while to review, but this seems correct!

@akien-mga akien-mga merged commit d8ef904 into godotengine:master Jun 22, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suspiciously small delta argument to _process with thread model Multi-Threaded
4 participants