Title: GPUParticles2D Never Freed · Issue #1 · Bitlytic/Strategy-GDScript · GitHub
Open Graph Title: GPUParticles2D Never Freed · Issue #1 · Bitlytic/Strategy-GDScript
X Title: GPUParticles2D Never Freed · Issue #1 · Bitlytic/Strategy-GDScript
Description: In bullet_particles.gd, the finished signal is connected to the on_finished() method, where the particle system is then queued for deletion. However, this never executes. For some reason, the GPUParticles2D never emits the finished signa...
Open Graph Description: In bullet_particles.gd, the finished signal is connected to the on_finished() method, where the particle system is then queued for deletion. However, this never executes. For some reason, the GPUPa...
X Description: In bullet_particles.gd, the finished signal is connected to the on_finished() method, where the particle system is then queued for deletion. However, this never executes. For some reason, the GPUPa...
Opengraph URL: https://github.com/Bitlytic/Strategy-GDScript/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GPUParticles2D Never Freed","articleBody":"In bullet_particles.gd, the finished signal is connected to the on_finished() method, where the particle system is then queued for deletion. However, this never executes. For some reason, the GPUParticles2D never emits the finished signal.\r\n\r\nThe workaround I did for now is to define a \"dying\" variable at the top of the class and initialize it to false, and then change the _physics_process code to:\r\n```gdscript\r\nfunc _physics_process(delta: float) -> void:\r\n\tif target && is_instance_valid(target):\r\n\t\tglobal_position = target.global_position\r\n\telif not dying:\r\n\t\tdying = true\r\n\t\temitting = false\r\n\t\tget_tree().create_timer(lifetime, false).timeout.connect(on_finished)\r\n```\r\n\r\nI believe the reason the finished signal doesn't get fired is due to the particle system not being one_shot at the beginning of its life, but I'm not 100% certain.","author":{"url":"https://github.com/dmreichard","@type":"Person","name":"dmreichard"},"datePublished":"2024-06-08T03:09:41Z","url":"https://github.com/Bitlytic/Strategy-GDScript/issues/1"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5299a9e2-078e-1ab4-e5e7-95c9f5f6830e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5BE:22BD05:85B0F0:B3803D:6AFF9646 |
| html-safe-nonce | 76b2733ef2226c6ab1f57021dc25e26baae4f4b03234d8cb9d9a2258b42fa517 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUJFOjIyQkQwNTo4NUIwRjA6QjM4MDNEOjZBRkY5NjQ2IiwidmlzaXRvcl9pZCI6Ijg4MzIyNzU0NDc3MDczMDk2MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 91d21dee6591fd4587a76c880259c733cc3498d9b6f89b99b1086451de259a83 |
| hovercard-subject-tag | issue:2341404489 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Bitlytic/Strategy-GDScript/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e333df61453fa41adadc642e25fe49072028459a285a7587f899547e23f6d433/Bitlytic/Strategy-GDScript/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e333df61453fa41adadc642e25fe49072028459a285a7587f899547e23f6d433/Bitlytic/Strategy-GDScript/issues/1 |
| og:image:alt | In bullet_particles.gd, the finished signal is connected to the on_finished() method, where the particle system is then queued for deletion. However, this never executes. For some reason, the GPUPa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmreichard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c75d045e8c84b51e2ac680086a6dd1eeaf2bc15b82137d22ee5106835d6256c |
| turbo-cache-control | no-preview |
| go-import | github.com/Bitlytic/Strategy-GDScript git https://github.com/Bitlytic/Strategy-GDScript.git |
| octolytics-dimension-user_id | 70176508 |
| octolytics-dimension-user_login | Bitlytic |
| octolytics-dimension-repository_id | 801557830 |
| octolytics-dimension-repository_nwo | Bitlytic/Strategy-GDScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 801557830 |
| octolytics-dimension-repository_network_root_nwo | Bitlytic/Strategy-GDScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aa486b0389431f870c0adf9d4758aaff807c2d97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width