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

[3.x] Backport "Add finished signal to GPUParticles" #81559

Conversation

matorin57
Copy link
Contributor

Backporting #76859 to 3.x

I moved the changes over by hand instead of cherry picking in git becuase there was significant enough changes in file names and code names that it was easier to do by hand. There was some structural differences; namely using VS instead of RS in 3.x and _notification being if statements instead of a switch in 3.x. I am fairly confident the changes in _notification should be semantically the same as the original change but I am not familiar with the difference between RS and VS.

Related to issue #64094

@matorin57 matorin57 requested review from a team as code owners September 12, 2023 00:56
@akien-mga akien-mga added this to the 3.x milestone Sep 12, 2023
@akien-mga akien-mga changed the title Backporting "Add finished signal to GPUParticles" to 3.x [3.x] Backport "Add finished signal to GPUParticles" Sep 12, 2023
scene/2d/particles_2d.h Outdated Show resolved Hide resolved
@AThousandShips
Copy link
Member

AThousandShips commented Sep 12, 2023

Should have a co-authorship as it's mostly rearranging code, add the following to your commit message:

Co-authored-by: HolonProduction <[email protected]>

@matorin57 matorin57 force-pushed the 3.x-backport-finished-singal-GPU-particles branch from d9f1f31 to 48e516b Compare September 12, 2023 14:37
@matorin57
Copy link
Contributor Author

Added coauthorship

@AThousandShips
Copy link
Member

My bad there needs to be an empty line before the co-author message on the commit message:


Co-authored-by: HolonProduction <[email protected]>

Co-authored-by: HolonProduction <[email protected]>
@matorin57 matorin57 force-pushed the 3.x-backport-finished-singal-GPU-particles branch from 48e516b to 2a319ab Compare September 12, 2023 14:45
@matorin57
Copy link
Contributor Author

Added

@@ -21,6 +21,7 @@
<return type="Rect2" />
<description>
Returns a rectangle containing the positions of all existing particles.
[b]Note:[/b] When using threaded rendering this method synchronizes the rendering thread. Calling it often may have a negative impact on performance.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this applies to 3.x as well but it does make sense in theory.

Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

Class reference-side is fine. The feature is just plain nice to have.

Copy link
Member

@lawnjelly lawnjelly left a comment

Choose a reason for hiding this comment

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

Can be made a lot more efficient, but can be done in later PR. Perfection is the enemy of good enough, and all that. 😁

@akien-mga akien-mga modified the milestones: 3.x, 3.6 Feb 7, 2024
@akien-mga akien-mga merged commit 862d63e into godotengine:3.x Feb 7, 2024
@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.

5 participants