-
Notifications
You must be signed in to change notification settings - Fork 41
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
WIP: Wasm Yoga port (2021) #67
base: master
Are you sure you want to change the base?
Conversation
i would love for this project to go forward but i have no idea how to review or test for validity. but after all, if it's maintained the maintainers intuition has more worth than any of that. if you came that far, would you want to take over so that we can move forward more rapidly? i could help with demos testing it out and getting more traction so others can join and help. could you quickly go into the advantages of the new port? is it faster/slimmer/safer ... |
well, kinda awkward situation but.. same ? I don't think I'm the right guy for the job here 😅 I litterally have no idea what are the advantages besides the one listed in the original PR, which says that it's slimmer (and looking at the diff on Maybe @saitonakamura can help ? |
Haha, I was just too afraid to touch wasm, but if you're saying that you don't have experience too (cause you managed to make it work I assumed you are 😅) I can give it a shot. I have pretty good understanding of react-three-flex by now so there's that |
I've tried this approach myself some time ago, the problem is that the code becomes way less easy to maintain and the size/speed advantage is not much. Have you been able to experience real benefits with this? |
Yeah I did notice that the API wasn't as straightforward as before with As for the benefits, no idea, but I couldn't get @react-three/flex running with Vite without it (see #66) |
I took my shot at it and here's what I came up with #69 |
Closes #30 #66
Based on #37
I'm definetely not familiar with both WASM and the react-three-flex so please forgive me if anything seems wrong.
I feel like the rebase went mostly fine, but please double-check everything especially the conditions in
src/Flex.tsx
, around the lines of// Recalc all the sizes
One issue remaining is the
getIsTopLevelChild
insrc/util.ts
which needs a missing yoga binding (YGNodeGetParent
)