Skip to content

Fixes for scene files and AlignOf optimization#596

Merged
monkeyman192 merged 2 commits into
developmentfrom
recent_fixes
Apr 23, 2024
Merged

Fixes for scene files and AlignOf optimization#596
monkeyman192 merged 2 commits into
developmentfrom
recent_fixes

Conversation

@monkeyman192
Copy link
Copy Markdown
Owner

First set of changes to try fix some issues.
This should get scene files working again.
I had to remove the custom deserialization code since it was causing issues now that the NameHash field is before the Name field. I don't think this was really being used anyway so hopefully it's fine... (The value it would set was wrong anyway...)

I also added an optimization to the AlignOf method in NMSTemplate to utilize the fact that the first field of a class will always have the largest offset, so we no longer need to recursively go through all fields of a class to figure out the alignment, but can instead stop at the first one. Not sure if this will have any noticable change, but it's a free optimization...

@monkeyman192 monkeyman192 merged commit 7510b39 into development Apr 23, 2024
@monkeyman192 monkeyman192 deleted the recent_fixes branch April 23, 2024 22:19
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