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

Remove: performance measurements in YAPF #9143

Merged
merged 2 commits into from Apr 30, 2021

Conversation

TrueBrain
Copy link
Member

Motivation / Problem

Was looking at RDTSC, where we use it etc. Comment strongly suggests it is only for TIC/TOC. A grep showed that was a lie.

Which showed me this lovely gem. We constantly track performance in YAPF, but only show it with a very high yapf-specific debug setting. And that always makes me wonder: who still uses it? And if you use it, how does it help you?
Especially as we now have a lovely framerate window, which does measurements in a completely diferent way.

So, after some consideration .. I burned it to the ground.

Performance-wise, don't expect much difference here. YAPF caches a lot and often, so depending on your game, it wasn't really called "that often".

Description

YAPF was constantly measuring its performance, but only at
certain debug-levels this information was shown.

Now after years, I sincerely wonder if anyone still knows about this
feature and who still use it. Especially with the new framerate window,
this detailed performance is not as meaningful anymore as it once
was.

Limitations

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

LordAro
LordAro previously approved these changes Apr 30, 2021
@LordAro LordAro dismissed their stale review April 30, 2021 10:22

changed my mind

YAPF was constantly measuring its performance, but only at
certain debug-levels this information was shown.

Now after years, I sincerely wonder if anyone still knows about this
feature and who still use it. Especially with the new framerate window,
this detailed performance is not as meaningful anymore as it once
was.
@LordAro LordAro added the backport requested This PR should be backport to current release (RC / stable) label Apr 30, 2021
@TrueBrain TrueBrain merged commit 665a392 into OpenTTD:master Apr 30, 2021
@TrueBrain TrueBrain deleted the stop-wasting-time branch April 30, 2021 10:48
@LordAro LordAro added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants