Commit Graph

2 Commits

Author SHA1 Message Date
LemonInTheDark
2c20f8dd26 Ensures early assets init when expected during unit tests, (#70753)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
2022-10-30 21:29:53 -07:00
LemonInTheDark
90eb757265 Adds lazyloading to the asset subsystems (#69454)
* Adds lazyloading to the asset subsystems

This currently applies only to spritesheets because of how monumentally
expensive they are.
If an asset is requested it will immediately be fully loaded, but
otherwise we slowly load them in with a separate subsystem.

This allows us to not hold up initialize with hair stuff. Saves roughly
33% (16 seconds with LOW_MEMORY_MODE) of initialize on my machine

My target is something closer to the 9 second init that had back in
2019, this is a good first step. Lets see how much more we can do yeah
lads?

Co-authored-by: san7890 <the@san7890.com>
2022-09-01 00:35:48 -07:00