I would appreciate it if some of the experienced developers here can look into the performance maybe I am missing something Easy 3D Model Viewer
… so that’s about 1.5 GB of VRAM required to render these textures, iPhones start crashing somewhere in the vicinity of 500 MB. Probably best to keep the textures below 2048px, or smaller if you can maintain the quality you need.
When a modal dialog is opened by clicking on a marker, and that dialog contains much content causing a scrollbar to appear, using the scroll-wheel will continue scrolling on the page itself, rather than inside the dialog.
I would suggest “breaking out” the modal to be floating above the page (fullscreen, fixed position), rather than inside the model viewer itself. This gets particularly frustrating when using a much smaller model viewer, since there is nearly no room for the dialog to render properly.
I think you misunderstand. The dialog itself should pop out of the model viewer container. I mean the big white box that says “Detailed Info Window” with the red close-button. That is your code, not from YouTube
first time i see this flag, super useful! do you think gltf-transform could in the future print out performance hints like that in the console? similar to build tools that tell you a bundle exceeds a margin.
I’m not sure how to choose a threshold for warnings, as I don’t want to make assumptions about whether the model is ‘the whole scene’ or just one prop, or something not meant for realtime at all. And don’t want to make the CLI so noisy that it’s worse than nothing (see: npm audit).
Maybe some kind of summary statistics would be the way to go? Similar to: