Minebench / Pipes

Simple transport pipes and item sorters for Paper
https://ci.minebench.de/job/Pipes/
GNU General Public License v3.0
2 stars 3 forks source link

Paper warns about the usage of Timing(s) #5

Open FireInstall opened 1 year ago

FireInstall commented 1 year ago

Used Version

v1.5-SNAPSHOT (build 297)

Environment description

paper 1.20

Log

[18:49:00 WARN]: [!] The timings profiler has been enabled but has been scheduled for removal from Paper in the future.
    We recommend installing the spark profiler as a replacement: https://spark.lucko.me/
    For more information please visit: https://github.com/PaperMC/Paper/issues/8948
[18:50:23 WARN]: [Pipes] Could not save lang.de.yml to plugins/Pipes/lang.de.yml because lang.de.yml already exists.
[18:50:23 WARN]: Plugin 'Pipes' is creating timing 'move' - this is deprecated behavior, please report it to the authors: Lord36, Phoenix616
[18:50:23 WARN]: Plugin 'Pipes' is creating timing '## filter' - this is deprecated behavior, please report it to the authors: Lord36, Phoenix616
[18:50:23 WARN]: Plugin 'Pipes' is creating timing '## transfer' - this is deprecated behavior, please report it to the authors: Lord36, Phoenix616
[18:50:23 WARN]: Plugin 'Pipes' is creating timing '## filter_amount' - this is deprecated behavior, please report it to the authors: Lord36, Phoenix616

What is happening?

While it's still working, the timings api is marked for removal and paper is nagging about it. However, I belive while they make a fuss, they do not ship the api themselfs.

Additional context

You may want to have a look into spark docs The Timings API is being used in io.github.apfelcreme.Pipes.Manager in lines 108, 241, 273, 320 where it's only ever called in form of try (Timing t = <Timing>.startTiming()) {...}

Phoenix616 commented 1 year ago

Until Spark can to what Timings v2 can do the hooks will not be removed from the plugin.

FireInstall commented 1 year ago

Alright. Just wanted to open a issue for future refference

FireInstall commented 3 weeks ago

Do you still stand by your opinion since timings is disabled by default now on paper? Does this mean everyone using Pipes has to re-enable them?

Phoenix616 commented 3 weeks ago

Do you still stand by your opinion since timings is disabled by default now on paper?

Yes

Does this mean everyone using Pipes has to re-enable them?

No, only if you want Pipes-specific Timings.

Also if Paper ends up removing it completely I will look into adapting it to either Spark (if they ever manage to support this way of doing things), the inbuilt Minecraft profiler or even resurrecting my Paper fork Origami to re-add Timings v2.

FireInstall commented 3 weeks ago

Well currently there is a PR on Paper to remove timings. I believe it won't get merged this update cycle but if mojang keeps introducing breaking updates in subversions maybe in some 1.21.X...