Skip to content

Defer scene DList resource loading to in-game and support alt pathing#4986

Merged
briaguya0 merged 2 commits intoHarbourMasters:developfrom
Archez:defer-scene-dlist-resource-loading
Feb 4, 2025
Merged

Defer scene DList resource loading to in-game and support alt pathing#4986
briaguya0 merged 2 commits intoHarbourMasters:developfrom
Archez:defer-scene-dlist-resource-loading

Conversation

@Archez
Copy link
Contributor

@Archez Archez commented Feb 3, 2025

This reworks the scene mesh importer to assign the polygon DList's as resource strings, instead of loading the resource in that moment.

This achieves two main things:

  • Supports re-loading individual DList resources in-game if they were previous unloaded (such as alt asset unloading)
  • Supports alt-toggling on the fly. Before once a scene was loaded, the dlist was set in stone regardless if you toggled alt.

Using resource strings aligns with how we implemented alt-toggling for skeletons.

Build Artifacts

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't have a full understanding of the greater context of where the resource loads end up actually happening with this change, but all of the changes in this PR seem very reasonable.

i left a couple little comments in places where i think we can rip out some unused stuff, but i'm happy with landing this as-is.

@Archez
Copy link
Contributor Author

Archez commented Feb 4, 2025

where the resource loads end up actually happening with this change

The resource is loaded later when the string gets passed into our gSPDisplayList overload, which does a OTR sig check.

@briaguya0 briaguya0 added this to the 9.0.0 milestone Feb 4, 2025
@briaguya0 briaguya0 merged commit 3cd4851 into HarbourMasters:develop Feb 4, 2025
5 checks passed
@Archez Archez deleted the defer-scene-dlist-resource-loading branch February 5, 2025 16:01
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