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

[lang] Store relations with 16-bit type #4779

Merged
merged 4 commits into from
Apr 13, 2022

Conversation

g1n0st
Copy link
Contributor

@g1n0st g1n0st commented Apr 13, 2022

Related issue = #3608

Now the relation metadata of ti.Mesh stores in uint16 type instead of int32 to save the global memory footprint and bandwidth at almost 2x for the relations.
For the dynamic relations like VV, now we store an auxiliary data patch_offset to represent the start address of data for each patch, and offset only represents the local prefix within a patch. So the offset data can be packed into uint16 type.

@g1n0st g1n0st added the mesh MeshTaichi label Apr 13, 2022
@g1n0st g1n0st requested a review from BillXu2000 April 13, 2022 09:27
@g1n0st g1n0st self-assigned this Apr 13, 2022
@netlify
Copy link

netlify bot commented Apr 13, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 95e6d58
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6256996b058e7000086a8700
😎 Deploy Preview https://deploy-preview-4779--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@BillXu2000 BillXu2000 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@g1n0st g1n0st merged commit b6408f8 into taichi-dev:master Apr 13, 2022
k-ye pushed a commit to k-ye/taichi that referenced this pull request May 5, 2022
* offset/value from int32 -> uint16, add auxiliary data 'patch_offset'

* update mesh test

* remove i16

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mesh MeshTaichi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants