axewater / sharewarez

SharewareZ transforms any game folder into a dynamic, searchable and shareable library.
145 stars 1 forks source link

Game Details Page Sometimes Loads Slowly #122

Open Bovive opened 3 weeks ago

Bovive commented 3 weeks ago

I did quite a bit of speed testing with slow and fast systems. The main page that would sometimes load slowly was the game_details page. It occurs when the game has one or more high resolution screenshots. Video and cover did not seem to have much effect. Removing the high resolution screenshots fixed the loading speed.

Some possible solutions:

I did attempt to remove all javascript and theme checks and just loaded all of the files directly. I was not able to measure a speed change.

Bovive commented 3 weeks ago

Resizing the covers or creating thumbnails may also help the library page when a lot of games are resulted. They are resized to 250x351 on the discover page and 287x216 on the library page. The largest cover is 484x363 on the game details page. I'm not sure that covers are affecting performance much. IGDB doesn't have strict size restrictions for covers, it just has to be 3:4 ratio. They recommend 600x800 and I think most are, but they certainly can be larger.