[Potential optimization] Compress all resources to one file #3191
arthuro555
started this conversation in
Enhancement ideas (and their technical discussions)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We could try to zip all resources and load them using a performance focused zip library like pako. For loading from zip you can maybe take a look at my zip resource loader as part of gdmod to take inspiration.
Potential gains:
Potential downsides:
Careful performance measuring is needed to find out if it would actually be faster/worth it considering the downsides.
I said zip but any other fast compression/decompression algorithms would do, as long as it is fast. Maybe also asar like electron?
Beta Was this translation helpful? Give feedback.
All reactions