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
Accelerate the Merge vertex post processing step #4527
Conversation
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.
Looks fine, I will merge it,
Nice approach, hopefully, the memory consumption will not explode for big models. But this will be a different story. |
Merged, thanks a lot for your contribution. |
Thank you very much for accepting my contribution.
…On Sat, May 14, 2022 at 10:54 AM Kim Kulling ***@***.***> wrote:
Merged, thanks a lot for your contribution.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/assimp/assimp/pull/4527*issuecomment-1126682587__;Iw!!Nmw4Hv0!wEcF-fwE3l-hbUspBe7zKxHf8gFIBFIL4Ge7Hk08GjHTU1vRkfYexdvepWjEsPTCyWTSLgoVzJ4tdDKn6b5I-Uk8UEpghU8tng$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AEXGJM5L5EIWGMGIBOSYPLTVJ5Z5PANCNFSM5V4HYXMQ__;!!Nmw4Hv0!wEcF-fwE3l-hbUspBe7zKxHf8gFIBFIL4Ge7Hk08GjHTU1vRkfYexdvepWjEsPTCyWTSLgoVzJ4tdDKn6b5I-Uk8UEoMIE1GZQ$>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
This message and its contents, including attachments are intended solely
for the original recipient. If you are not the intended recipient or have
received this message in error, please notify me immediately and delete
this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before printing
this email.
|
I have not experienced this issue. And I'm not sure how to recreate it. Edit: then again. It shouldn't have caused any problem should it? |
This patch set does not compare color, texcoords and anim meshes. I am not sure it can accelerate the routine when the whole comparisons are added. |
btw it looks like this PR fixed the issue https://github.com/assimp/assimp/pull/4707/files |
That look like it does. :) |
The function int JoinVerticesProcess::ProcessMesh( aiMesh* pMesh, unsigned int meshIndex)
can be accelerated by using an std::unordered_map instead of binary search to create the unique vertices.
To do that the following was done.
Effectively, this should reduce the complexity from O(nlog(n)) to O(n). Therefore, accelerating the postprocessing step