Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for scene files and AlignOf optimization #596

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

monkeyman192
Copy link
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
12 checks passed
@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