Skip to content

[3.x] Remove redundant thread sync counter draw_pending#47232

Merged
akien-mga merged 1 commit intogodotengine:3.xfrom
zmanuel:eliminate-draw-pending-3.x
Aug 6, 2022
Merged

[3.x] Remove redundant thread sync counter draw_pending#47232
akien-mga merged 1 commit intogodotengine:3.xfrom
zmanuel:eliminate-draw-pending-3.x

Conversation

@zmanuel
Copy link
Copy Markdown
Contributor

@zmanuel zmanuel commented Mar 21, 2021

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.

Cherry-Picked from #35758, which is the same fix against the master branch (there have been renames)

Fixes #35718

@zmanuel zmanuel requested a review from a team as a code owner March 21, 2021 15:11
@zmanuel
Copy link
Copy Markdown
Contributor Author

zmanuel commented Mar 21, 2021

Provided for convenience. If only one PR can be merged, pick #35718. It's just a tiny bug affecting unrealistic projects in a manner that would probably not even be observable to players.

@zmanuel zmanuel changed the title Remove redundant thread sync counter draw_pending Remove redundant thread sync counter draw_pending, 3.x version Mar 21, 2021
@Calinou Calinou added this to the 3.4 milestone Mar 21, 2021
@akien-mga akien-mga requested a review from RandomShaper March 23, 2021 10:53
@Chaosus Chaosus modified the milestones: 3.4, 3.5 Nov 8, 2021
@ghost
Copy link
Copy Markdown

ghost commented Dec 15, 2021

Tested this on 3.x didn't notice any issues with rendering. I didn't test the delta values. I was more interested to see if I can spot any glitches or issues that may negatively impact frame rendering. I thought at first that the rendering was more "slideshow"-y with this pr but tested again a number of times and visually is no different with than without the pr.

@akien-mga akien-mga force-pushed the 3.x branch 2 times, most recently from 71cb8d3 to c58391c Compare January 6, 2022 22:40
@akien-mga akien-mga changed the title Remove redundant thread sync counter draw_pending, 3.x version [3.x] Remove redundant thread sync counter draw_pending Apr 4, 2022
Copy link
Copy Markdown
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

The master version was approved by @reduz and merged, so chances are that this is also good.

It's too late to merge for 3.5 but once rebased we could likely merge for 3.6.

@akien-mga akien-mga modified the milestones: 3.5, 3.x Jun 22, 2022
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
@akien-mga akien-mga force-pushed the eliminate-draw-pending-3.x branch from 16fde22 to 9fbdace Compare August 6, 2022 12:09
@akien-mga
Copy link
Copy Markdown
Member

Force pushed a rebase.

@akien-mga akien-mga merged commit 7637b5d into godotengine:3.x Aug 6, 2022
@akien-mga
Copy link
Copy Markdown
Member

Thanks!

@akien-mga akien-mga modified the milestones: 3.x, 3.6 Aug 6, 2022
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.

4 participants