Wurst7 icon indicating copy to clipboard operation
Wurst7 copied to clipboard

new hack: TpsDisplayHack

Open isjerryxiao opened this issue 3 years ago • 4 comments

Description

Add a TPS meter

(Optional) screenshots / videos

image

isjerryxiao avatar Jan 26 '22 12:01 isjerryxiao

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 26 '22 12:01 CLAassistant

@Alexander01998 video showcase for all 4 pull requests: https://pb.meson.cc/s/loprhw2f.mp4

isjerryxiao avatar Jan 28 '22 04:01 isjerryxiao

@isjerryxiao please fix 22w16b image

buiawpkgew1 avatar Apr 22 '22 07:04 buiawpkgew1

@buiawpkgew1 Wurst itself hasn't even updated to 22w16b yet. Besides, this PR targets 1.18.2.

Alexander01998 avatar Apr 22 '22 11:04 Alexander01998

when will this be actually added to wurst? (when will this branch merge?)

Cyclopropinon avatar Mar 20 '23 21:03 Cyclopropinon

Walkthrough

Walkthrough

The changes involve the introduction of a new feature to the Wurst Client, specifically a TPS (ticks per second) display hack. This feature adds a GUI component and a hack that calculates and displays the server's TPS, latency, and the time of the last tick. It includes a new window in the ClickGui, a component to render the TPS information, and a hack that listens for packets to estimate server performance metrics.

Changes

File Path Change Summary
.../clickgui/ClickGui.java Added tpsDisplayHack window to the windows collection.
.../clickgui/components/TpsComponent.java Created a new TpsComponent class for rendering TPS information.
.../hack/HackList.java Added a new tpsDisplayHack variable of type TpsDisplayHack.
.../hacks/TpsDisplayHack.java Introduced a new TpsDisplayHack class with methods for TPS display and packet listening.

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

coderabbitai[bot] avatar Nov 14 '23 16:11 coderabbitai[bot]

This pull request has been open for a while with no recent activity. If you're still working on this or waiting for a review, please add a comment or commit within the next 7 days to keep it open. Otherwise, the pull request will be automatically closed to free up time for other tasks.

Pull requests should be closed if:

  • They have been superseded by another pull request
  • They are out of scope or don't align with the project
  • They have become obsolete due to other changes
  • They have bugs or conflicts that won't be resolved

github-actions[bot] avatar Jan 15 '24 02:01 github-actions[bot]