Skip to content

Avoid filling the stack trace in Lwjgl3AwareException - #351

Open
Oondanomala wants to merge 2 commits into
GTNewHorizons:masterfrom
Oondanomala:lwjgl3-aware-quicker
Open

Avoid filling the stack trace in Lwjgl3AwareException#351
Oondanomala wants to merge 2 commits into
GTNewHorizons:masterfrom
Oondanomala:lwjgl3-aware-quicker

Conversation

@Oondanomala

Copy link
Copy Markdown

Since the exception is only ever used to change the control flow and is always ignored there is no need to calculate the stack trace, which should improve launch performance (it's quite a slow operation). I haven't benchmarked it since its a trivial optimization.

Side note, why is it even public? Are mods expected to use it?

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

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.

1 participant