-
Notifications
You must be signed in to change notification settings - Fork 4
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
Expensive "crafting" calls #543
Comments
I think this could just be minegeld crafting, in combination with spamming middle-click (which crafts 10x at a time). I've been the source of several lag spikes in the past doing just that, and I'm sure I'm not the only one who crafts minegeld... |
Yeah, chi confirmed it too 😞 it is pretty weird that simple middle-clicking can bump the lag into the minute-range, there may be some "on_craft" hooks somewhere, haven't checked yet... |
Call stack for crafting (slightly different on recent engine commits, but still has the same issue):
There was a similar issue with the priv-check db-call before i installed the TODO
EDIT: disregard this, not accurate |
this is still happening, reopening 😭 |
Only reproducible with lots of item-definitions Main cpu-hog in function: Measured time around
|
(just dumping this here so it does not get forgotten)
Recent heavy lag-spikes are accompanied by lots of crafting and network-receive spikes.
I suspect some auto-clicker or even low-level packet generation.Prominent callbacks for
minetest.register_on_craft
xp_redo
stamina
Testing:
EDIT: turns out this is another issue with the (little-bit-) higher latency postgres backend
The text was updated successfully, but these errors were encountered: