Improve three scene performance and add JSCAD #506
Reference in New Issue
Block a user
Delete Branch "kurt/three-perf-n-tweaks-rebase"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Also
requires
yarn rw prisma migrate devfor local dev because of db changes.Hooraa @hrgdavor
@@ -78,3 +70,3 @@function Gooey() {const blobsData = useMemo(() => {const firstSet = Array.from({ length: 10 }).map((_, index) => {const firstSet = Array.from({ length: 5 }).map((_, index) => {This alone was a big perf improvement
adding some roughness the the blobs for perf
reducing the number of blobs also helped perf
I liked the reflection from
<Environment />so this replicates that a little@@ -9,6 +9,7 @@ const ProjectsPage = () => {title="Home page"description="Learn about Code CAD and the CadHub community"lang="en-US"socialImageUrl="https://cadhub.xyz/default-social-image.jpg"for now its:

See https://github.com/Irev-Dev/cadhub/pull/505#issuecomment-917548915
this makes the follow animation smoother by magic,
I just copy pasted it from an example so not fully on top of it, but I know that 'lerp' is linear interpolation, so uses that to gradually rotate the model.
@@ -43,6 +43,7 @@"react-helmet": "^6.1.0","react-hotkeys-hook": "^3.4.0","react-image-crop": "^8.6.6","react-intersection-observer": "^8.32.1",used to turn off the canvas when not visible