Wurst7
Wurst7 copied to clipboard
new hack: TpsDisplayHack
Description
Add a TPS meter
(Optional) screenshots / videos

@Alexander01998 video showcase for all 4 pull requests: https://pb.meson.cc/s/loprhw2f.mp4
@isjerryxiao please fix 22w16b

@buiawpkgew1 Wurst itself hasn't even updated to 22w16b yet. Besides, this PR targets 1.18.2.
when will this be actually added to wurst? (when will this branch merge?)
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 ignoreanywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Commands (invoked as PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger a review. This is useful when automatic reviews are disabled for the repository.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai helpto 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.yamlfile 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
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