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

Improve visibility rect/AABB generation usability in GPUParticles #50181

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jul 5, 2021

master version of #50180

  • Don't display the time dialog if the automatically calculated generation time is short enough.
  • Clarify the purpose of waiting in the progress dialog.

// Add one second to the default generation lifetime, since the progress is updated every second.
generate_seconds->set_value(MAX(1.0, trunc(particles->get_lifetime()) + 1.0));

if (generate_seconds->get_value() >= 11.0 + CMP_EPSILON) {
Copy link
Member

Choose a reason for hiding this comment

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

Is the epsilon really useful here?

Copy link
Member Author

@Calinou Calinou Jul 5, 2021

Choose a reason for hiding this comment

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

If the particle's lifetime is exactly 10 seconds (which means the automatically determined time generation is 11 seconds), I'd prefer the dialog not to show up.

If the lifetime is any greater than 10 seconds, the dialog should display so that you can reduce the generation time.

- Don't display the time dialog if the automatically calculated
  generation time is short enough.
- Clarify the purpose of waiting in the progress dialog.
@Calinou Calinou force-pushed the gpu-particles-improve-visibility-generation branch from d0ff5e5 to 1bd2142 Compare August 16, 2021 03:57
@akien-mga akien-mga merged commit 84f1d16 into godotengine:master Aug 16, 2021
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the gpu-particles-improve-visibility-generation branch August 23, 2022 11:55
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.

2 participants