-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Useless warnings about apply_system_buffers ticks #8410
Comments
Trying to understand the problem here. Is it that changes don't last long enough? Is it that you're getting the messages? If the problem the messages, you can always use |
I wonder if we should be producing these at all for |
My guess is that the problem is the executor special-casing In particular this block of code (and the equivalent in the single-threaded executor) should be the one responsible for this: bevy/crates/bevy_ecs/src/schedule/executor/multi_threaded.rs Lines 529 to 556 in c488b70
|
The issue would be that bevy incorrectly produces this warning. A message saying apply_system_buffers did not run for some arbitrary long amount of time sounds pretty concerning, but if that was the case your application probably wouldn't function.
Maybe the ideal fix for this issue wouldn't be apply_system_buffers specific but making it so that it only throws these warnings where they can actually matter
Yea, that's what I found with my quick look trough the code too. |
This error could be useful in any system that accesses any system param that impls either |
# Objective - Fixes #8410 ## Solution - Skip the check that produces the warning for apply_buffers systems. --- ## Changelog - skip check_change_ticks for apply_buffers systems.
Bevy version
0.10 and 0.10.1
What you did
Keep my game server running for a long time
What went wrong
I get 9 of these messages every 24.5 hours:
Additional information
A quick look at the code made it seem like this warning is thrown for apply_system_buffers because it never updates last_tick, since apply_system_buffers is an empty function and is never actually executed as a system. Once the tick gets high enough it prints this warning for every apply_systems_buffers in the schedule.
The game server has a fairly minimal set of plugins:
The only other things of note are a custom runner (to achieve a more precise tickrate) and bevy_rapier3d
The text was updated successfully, but these errors were encountered: