Comments (3)
So I've resized all images to my size with this command:
cd /home/user/.cache/com.github.tkashkin.gamehub/graphics
find . -iname "*.jpg" -print0 | xargs -I{} -0 mogrify -resize 392x220^ -gravity center -extent 392x220 {}
And now scrolling is not stuttering, but covers are still not "instantly" shown. There's still a delay of 1-2 sec after them appear on screen.
Probably should try to replace this to always true and try to compile my very own build:
from gamehub.
Wrong file but yep. Changing this:
To this:
card.image_is_visible =true;
Fixes everything. No stutters, fast scrolling. Probably a bit of memory eaten and first start is slow, but overall that's what I've wanted.
For my opinion, there's another "cache" folder required with properly resized images for current grid dimensions in it. Changing display settings should wipe this folder and re-create new thumbnails. And so there should be no icon_is_visible control at all and no image processing on each start/load/scroll event. Just simple "load from cache => draw all at once".
from gamehub.
Combining code patch with approach:
find ~/.cache/com.github.tkashkin.gamehub/graphics/games/ -iwholename "*/images/*.jpg" -print0 | xargs -I{} -0 mogrify -resize 392x220^ -gravity center -extent 392x220 {}
made GameHub blazing fast. Fast start, smooth scroll. So probably caching of resized images and drawing all cards at once is a good idea.
from gamehub.
Related Issues (20)
- [Feature Request] User Categories for GOG games
- Automatic update for game HOT 2
- Dosbox config file ignored HOT 2
- Won't detect ROMs HOT 1
- Can't log into Humble Bundle or itch.io accounts HOT 5
- "Open installation directory" opens VS Code instead of Dolphin HOT 3
- Add GameHub to Flathub HOT 1
- Proton compatibility layer suddenly missing on non-Steam games HOT 15
- when choose "skip" at the main menu , then the gamehub crashes everytime HOT 1
- GOG bonus content not downloaded to the correct directory
- Can't Download or install Games from GOG HOT 4
- Crash just on launching AppImage "Master" version
- Itch.io games lose vertical images, don't load in correctly
- AppImage crash
- QT frontend for kde plasma? HOT 2
- Games Crash If they Are Installed On Another Partition
- Immediate crash when downloading/installing HOT 4
- Please stop using webkit2gtk 4.0
- Authentication links don't work when built without webkitgtk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gamehub.