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

Add clicks/second counter to HUD #19599

Merged
merged 43 commits into from
Sep 8, 2022
Merged

Add clicks/second counter to HUD #19599

merged 43 commits into from
Sep 8, 2022

Commits on Jul 28, 2022

  1. Configuration menu
    Copy the full SHA
    b2e7da5 View commit details
    Browse the repository at this point in the history
  2. Add some tests

    ItsShamed committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    0791508 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2df2401 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. Change KPS Counter implementation base and add better replay integration

    The counter implementaiton is now list based, and will not invalidate
    previous hits by removing them but by testing if they are within the 1
    second span, allowing better integration with replays and spectators.
    ItsShamed committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    89855cc View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2022

  1. Configuration menu
    Copy the full SHA
    42d1bdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24c29b7 View commit details
    Browse the repository at this point in the history
  3. Rewrite tests for KPS

    ItsShamed committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    b4e0fa7 View commit details
    Browse the repository at this point in the history
  4. Remove DT from KPS test

    ItsShamed committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    0c07df2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0886137 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. Refactor KPS

    - Remove '#nullable disable' in KeysPerSecondCalculator and
      KeysPerSecondCounter
    - Remove KeysPerSecondCalculator IDisposable implementation
    - Make KeysPerSecondCalculator static instance initialized once by
      KeysPerSecondCounters
    - Auto transfer dependencies from KeysPerSecondCounter to
      KeysPerSecondCalculator using Resolved properties
    - Add internal reset logic to KeysPerSecondCalculator and make it
      independent from Player
    - Use GameplayClock.TrueGameplayRate to get real-time rate. If 0 then it
      defaults to the last non 0 rate if no such mod is enabled
    ItsShamed committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    b2557a8 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2022

  1. Use DI to provide dependencies for KPS Calculator and improve input

    gathering
    
    KPS Calculator now uses DI to retrieve the clocks. Using `HUDOverlay` it
    is now cached for `KeysPerSecondCounter`s to resolve it. This also
    allows to make an "Attach" flow like `KeyCounter`.
    ItsShamed committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    b52a07c View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2022

  1. Configuration menu
    Copy the full SHA
    edb8e5e View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Configuration menu
    Copy the full SHA
    9e80d3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46e372c View commit details
    Browse the repository at this point in the history
  3. Make KPS counter strictly depending only on KPS calculator

    `KeysPerSecondCounter` now depends on `KeysPerSecondCalculator` via the
    `BackgroundDependencyLoaderAttribute` method, making it appear only in a
    gameplay context without requiring `GameplayClock` without using it.
    ItsShamed committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    0a94fb4 View commit details
    Browse the repository at this point in the history
  4. Add basic tests for KPS

    Created private mock classes to use them in place of `GameplayClock` and
    `DrawableRuleset`.
    ItsShamed committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    d58d5ee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e1efbd View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Remove KPS acronym usage

    ItsShamed committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    3c6461b View commit details
    Browse the repository at this point in the history
  2. Move KeysPerSecondCalculator instantiation from HUDOverlay to `Pl…

    …ayer`
    
    This prevents messing with *future* Skin (de)serialization
    ItsShamed committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    787dee2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d29cba8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9b252b1 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. Configuration menu
    Copy the full SHA
    e08f717 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2022

  1. Configuration menu
    Copy the full SHA
    d5f10cb View commit details
    Browse the repository at this point in the history
  2. Make ActionListener and KeysPerSecondCalculator not rely on event…

    …s to add timestamps
    ItsShamed committed Aug 14, 2022
    Configuration menu
    Copy the full SHA
    9dc8065 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2aa3a1b View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. Configuration menu
    Copy the full SHA
    3de35a1 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2022

  1. Merge branch 'master' into kps

    peppy committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    da407aa View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2022

  1. Configuration menu
    Copy the full SHA
    3ac6500 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5cf54a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c56390c View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2022

  1. Code cleanup for CPS tests

    - Remove null-forgiving operator usages
    - Fix code quality issues mentionned by NVika
    ItsShamed committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    b597049 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. Merge branch 'master' into kps

    peppy committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    5129716 View commit details
    Browse the repository at this point in the history
  2. Tidy up attach logic

    peppy committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    f3847b9 View commit details
    Browse the repository at this point in the history
  3. Code cleanup (CPS)

    ItsShamed committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    5cddc7e View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. Merge branch 'master' into kps

    peppy committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    7337d4c View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. Simplify calculation method

    peppy committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    5c2fb3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6729bb3 View commit details
    Browse the repository at this point in the history
  3. Rewrite tests

    peppy committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    ee094e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a98c6b2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    15a4eb4 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'master' into kps

    peppy committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    d4afc36 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    45239fc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    27aa355 View commit details
    Browse the repository at this point in the history