-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface stutters on main window scroll #676
Comments
So I've resized all images to my size with this command:
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:
|
Wrong file but yep. Changing this:
To this:
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". |
Combining code patch with approach:
made GameHub blazing fast. Fast start, smooth scroll. So probably caching of resized images and drawing all cards at once is a good idea. |
Hi everyone!
I'm trying to organize my Linux games collection with GameHub. Before this I've used the filesystem to organize everything - each game has it's folder in directory "Games" at my user's home. It has main binary + icon image + cover image (jpg or png 1000px wide or more). Like this:
First I've tried Lutris but it doesn't have any tag or category management so then I've turned to GameHub. Everything started promising and was looking great, but the more games I've added - the worse it worked. Right now there's exact 100 games in my DB. I'm using "GOG 392x220" layout to display titles, and now every time I scroll the list - GameHub stutters and lags. New cards are appearing with stutter and are blank for first 5-6 seconds after appearing on screen.
The game cache folder is properly populated:
It's size is:
My system has 32 physical CPU Cores, 64Gb of DDR4 RAM (49Gb free right now) and NVidia GPU with latest drivers. I'm using NVME as system disk with speeds like:
I play OW2 with Proton/Wine having 120+ fps and have no stutters. But for some reason native GameHub can't smoothly scroll and display this simple 100 title cards with jpeg/png cover images. Something is wrong here.
What should I check in my system that can be the cause of stutter? Or is it a bug in software?
Expected behavior
Scroll should work smoothly.
Actual behavior
Scroll stutters and freezes. Covers are appearing with 5-6 sec delay.
Steps to reproduce
Version and environment
The text was updated successfully, but these errors were encountered: