Slow performance and large memory usage with QTableView in Qt 5.15
-
@KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:
After hibernating my desktop for a night, it slows again.. and...reboot does not work anymore..TT
Are you running out of RAM? I'm guessing that the slowdown happens when your PC is busy transferring data between your physical RAM and your Pagefile. That is a very slow process.
Run Resource Monitor (https://www.thewindowsclub.com/use-resource-monitor-windows-10 ) and see what is using up all your memory and your disk I/O.
-
@KaoN said in Slow performance and large memory usage with QTableView in Qt 5.15:
The question is with 5.9.9, it works fine, with only 10MB memory consumption.
It's possible that the implementation of QTableView changed between Qt 5.9 and Qt 5.15 which provides better performance in some use-cases but worse performance in other use-cases.
Do you have Qt 5.12 LTS installed? How does it perform with that version?
You can post your minimal test code and provide instructions on how to cause the slowdown to https://bugreports.qt.io/. However, it is still not clear to me whether it is a bug/regression or not.
-
I'm pretty sure your Qt example has nothing to do with this.
-
@KaoN Microsoft made this change a while ago when the UWP, Windows for mobile/tablet was a thing and windows required faster reboots/boots/wakeups
As a result all modern Windows system have a "soft reboot /shutdown" these days
Usually you don't notice this, until some day, fundamental stuff starts behaving strangely.
I for once managed it (with Qt no less) to get my bluetooth driver in an undefined state, so nothing, bluetooth worked anymore, and a reboot did not fix it, because the normal reboot does not reinitialize and clear everything. That's how I learned about it.
Your case, smells like a bug hard to tell if Qt is at fault or not.
Have you tried updating your windows ? My Bluetooth story fixed itself with a windows update.And have you tried it on a 2nd, different windows pc ?
If yes, and behavior is the same (in both cases) than it may be a Qt issue
-
@J-Hilk Thanks for the information. Generally I find one case that if the application run through windows remote desktop, it will slow, even it was good before, and it will not recovery until hard reboot.
But another my laptop perform badly what ever I reboot or hard shutdown.
Only 5.9 works perfectly on every situation. -
@KaoN
mmh the last Idea I have, would be updating your graphics drivers, those are most often an issue. After that, bring it to https://bugreports.qt.io