DustinBrett / daedalOS

Desktop environment in the browser
https://dustinbrett.com
MIT License
8.64k stars 689 forks source link

performance #31

Closed No-one-important closed 2 years ago

No-one-important commented 2 years ago

items on the start menu and other interface elements are slow to load I am using an old laptop but would expect it to be quicker as it handles most things fine

laptop is dell latitude e7440 with coer i7-4600U using firefox as a web browser

DustinBrett commented 2 years ago

Thanks for the feedback! Is it slow on subsequent cached loads? I've found it's slow on first uncached load. I need to work on a smooth transition as it loads.

Could you describe the visuals of this slowness? Thanks.

No-one-important commented 2 years ago

The first time each app in the list takes just under a second to load after that is better but still somewhat slow I will add screen recording when I can get it to work

No-one-important commented 2 years ago

screen-recording.zip

DustinBrett commented 2 years ago

Thank you very much for this! It's quite helpful. I am going to be getting my old i5 4000 series PC up this week so I will do some tests also. But it looks unrelated to the computer and something that I've myself also seen, but rarely and a refresh usually has fixed it for me. I don't know why but sometimes all icons load very slow like that. I will be digging into this and trying to recreate it. I know people with FF and less powerful machines have had better results so I am not sure why you get consistent speed issues. I also plan to add a few caches in the near future that might help the file manager performance in general. The loading of those icons is quite inefficient after I've added so many things to them. I need to refactor and that seems like a focus spot. Thanks!

DustinBrett commented 2 years ago

I've published some performance improvements that will hopefully help. I am now using React 18 and several of the tasks File Manager did on load are now only done on demand. I think there is still room for improvement for sure, also React 18 is not even officially released yet, so things will keep evolving, I am going to keep this ticket open until I feel like I have done enough to say performance has been improved in the areas of concern.

No-one-important commented 2 years ago

that has significantly improved it

DustinBrett commented 2 years ago

Great to hear! I will keep working on it but indeed some of my changes such as React 18 should indeed have made some kind of change as it's a totally new way to render things.

DustinBrett commented 2 years ago

For devices supporting OffscreenCanvas I've committed a change which allows the wallpaper to run on it's own thread, off of the main thread. This also will improve performance, such as in Lighthouse scores.

PageSpeed - dustinbrett.com

image

No-one-important commented 2 years ago

not perfect but way better