w-m / 3dgs-compression-survey

An open survey on 3D Gaussian Splatting compression methods
https://w-m.github.io/3dgs-compression-survey/
MIT License
97 stars 5 forks source link

Page performance: reduce time to paint #4

Open w-m opened 3 months ago

w-m commented 3 months ago

The page takes several seconds to show up currently. Can be 5..7 seconds, PageSpeed measures e.g. 5.3s to Largest Contentful Paint on Desktop:

https://pagespeed.web.dev/analysis/https-w-m-github-io-3dgs-compression-survey/yc4hidmskn?form_factor=desktop

And 29 seconds on Mobile 😬.

Our goal should be to have the first contentful paint well below 1 second on Desktop and Mobile. Going through the diagnostics step from PageSpeed step by step should help. Focus should be on displaying the table as fast as possible (as it's the top visible element), and then getting started on adding in the plots, hopefully on a background thread.

The plot drawing needs some investigation. Why does the main script.js spend 4.5s in the main thread. At 12 plots, that's 375 ms per plot, that seems a lot for these few 2D lines?

w-m commented 1 month ago

It’s great that the page now loads quickly. But if I scroll down, the images appear one by one. Is it possible to download the images after the first render, so they are already loaded when I scroll down but don't slow down the initial load?

In any case, the images should get explicit widths and heights so that the design doesn’t jump when the image is loaded.