-
Notifications
You must be signed in to change notification settings - Fork 10
Remove handling of normals in fbximporter #269
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
Conversation
//this should never be called in the first place if the SDK is invalid | ||
if (!_sdk.IsValid()) | ||
{ | ||
throw new NullReferenceException("Cannot load files with invalid SDK."); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this check removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is another call to this function in FbxWorkload (ReadFbxData), where it checks this before calling the LoadFile function of the FbxImporter
@@ -78,7 +78,7 @@ public static (IReadOnlyList<CadRevealNode>, ModelMetadata?) ReadFbxData( | |||
var progress = 0; | |||
|
|||
// FBX Importer is intentionally not disposed as the dispose operation takes too long. If this becomes a problem with memory leaks we need to investigate why the dispose is so slow. | |||
var fbxImporter = new FbxImporter(); | |||
using var fbxImporter = new FbxImporter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either remove the using or update the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dod we have any profiling on the difference in memory use? Not that important but might be nice to have as some documentation if we ever consider re-adding normals.
1205d83
to
0496cb4
Compare
What have I made? π©βπ»
Removed handling of normals in the FBX importer, since they are not used by the CadRevealFbxProvider anyways.
Benchmark
Benchmark of fbximporter reading normals vs not handling normals.
Benchmarks performed using BenchmarkDotNet.
How can you best review this? π§
Make sure fbx files are imported properly.
Did I remember everything checklist?