stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
323 stars 33 forks source link

Improve first launch speed #61

Closed stackotter closed 2 years ago

stackotter commented 2 years ago

The first launch is an important part of the user experience and some of these changes will even speed up other aspects of the app (such as updating and loading new resource packs).

stackotter commented 2 years ago

I have changed all of the registries to use ZippyJSON to load the Pixlyzer JSON. However, ZippyJSONDecoder fails to load the Pixlyzer block registry so I had to hardcode that one to use the regular JSONDecoder. Getting it to work properly with ZippyJSONDecoder would likely make it 2 to 3 times faster.

The issue seems to be the SingleOrMultiple type (because of Pixlyzer's weird formatting).

stackotter commented 2 years ago

I'm closing this for now because the first launch is around 45 seconds after my recent optimisations which is definitely acceptable.