Skip to content

Conversation

@RealDevJG
Copy link

This PR improves performance of the GUI Screen "GotoScreen" from PR #116.

Performance measured:

State Before After
GUI not on-screen 288 FPS 288 FPS
GUI on-screen 3 FPS 288 FPS

Recorded on i7-14700k & RTX 2060 SUPER

Credit to @MattSturgeon for the original implementation in #116.

MattSturgeon and others added 8 commits January 4, 2024 10:09
Introduce `.get()`, `.save()`, & `.getConfig()`.

No need to set `@Excluded` on a static field.
Move "perspective" concept to `FreecamPosition`.

Move `isInRange` to `FreecamPosition`.
Enables Freecam if not already.

Teleports freecam to the specified `FreecamPosition`.

Intended for use by "Goto GUI".
Adds a GUI which allows jumping freecam to a player within render distance.

Limited on Modrinth to `MC.player`.

Could be expanded in future with tripod locations and other "saved" positions.
The `Tab` implementation provides a method to produce a list of `TargetListEntries`.

Currently, the only implementation is `PlayerTab`, which provides a list of `PlayerListEntries` & a "perspective" button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants