-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Add Node processing and physics processing cumulative (as opposed to delta) time #41850
Add Node processing and physics processing cumulative (as opposed to delta) time #41850
Conversation
This should fix issue #6999 |
Affected by / regardless of the pause state? I wonder if #39606 will affect this. |
I tested it against your branch and fortunately it seems to be working fine. |
d847bad
to
1e4672a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature and documentation look good to me, but I'm a bit perplexed about the timers starting at 1.0
.
1e4672a
to
79d7c55
Compare
79d7c55
to
9de7337
Compare
9de7337
to
0c027ef
Compare
Tested locally, it works as expected: time.mp4Testing project: test_cumulative_time.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR will need a dedicated version for 3.x
, as it is not trivial to cherry-pick.
I am not in favor of merging this, It's extremely easy to workaround with a line of script, plus it's confusing whether what kind of cumulative time it refers to. |
I suggest more discussion happens on this before a decision is made, but as-is, this is just far too easy to work around with a line of script, and too rarely needed to justify additions into core (which must be kept as bloat-free as possible). |
@reduz well noted. |
@MohammadKhashashneh No worries, still thanks for taking the effort of doing a PR and dont feel discouraged! We are discussing some more QOL features for rythm games that hope will prove useful in the future. |
@reduz Thank you and the rest of the crew for all your efforts :) and of course! not discouraged at all. I'm checking out what I can do next ;) |
This includes the following new functions:
get_physics_process_cumulative_time()
get_process_cumulative_time()
Both return the cumulative time this node has been processing . Affected by the Node's pause state
get_physics_process_total_time()
get_process_total_time()
Both return the total time this tree has been processing regardless of the Node's paused state.
Bugsquad edit: This closes #6999.