Skip to content
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

Terminally deprecate EventFactory isProfilingEnabled and invalidate #3050

Merged
merged 3 commits into from
May 14, 2023

Conversation

Technici4n
Copy link
Member

This functionality is useless clutter, using a proper profiler is much better.

Fixes #2849.

@Technici4n Technici4n requested a review from a team May 6, 2023 12:21
@Technici4n Technici4n requested a review from modmuss50 May 9, 2023 09:06
@modmuss50 modmuss50 added the last call If you care, make yourself heard right away! label May 9, 2023
@SquidDev
Copy link
Contributor

This functionality is useless clutter, using a proper profiler is much better.

One of the nice things about the vanilla profile, that Spark/async-profiler don't make as easy, is that it can provides per-tick profiling data. This is very useful when trying to track down stutter/lag spikes. I've definitely benefitted from this feature in the past.

That said, realise this does remove a lot of code, so it may not be worth keeping around just for that.

@modmuss50
Copy link
Member

Im not sure if anyone actully ever used this feature, there was no public API to enable it. I do think the vanilla profiling tools are under used (By players and modders), maybe there are things we can do to help increase its useage.

Sampler can provider per tick profiles, and can also only trigger on ticks that take longer than a given time.

@SquidDev
Copy link
Contributor

Im not sure if anyone actully ever used this feature, there was no public API to enable it.

Was it not enabled by default?

@Technici4n
Copy link
Member Author

Technici4n commented May 12, 2023

Was it not enabled by default?

Ah, I just realized... Then it should maybe be set to true in the PR? Not that it's really useful anyway...

@modmuss50
Copy link
Member

Oh, apparenly it was enabled by default, my bad. I guess there is a small pref gain from this change then 👍

@modmuss50 modmuss50 added the merge me please Pull requests that are ready to merge label May 14, 2023
@modmuss50 modmuss50 merged commit 1e9487d into FabricMC:1.19.4 May 14, 2023
modmuss50 pushed a commit that referenced this pull request May 14, 2023
…ate` (#3050)

* Terminally deprecate `EventFactory` `isProfilingEnabled` and `invalidate`

* Remove `forRemoval` in `isProfiling` deprecation

* Also deprecate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
last call If you care, make yourself heard right away! merge me please Pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate and remove EventFactory#invalidate
3 participants