Skip to content
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

歌曲列表滚动时候 FPS 略低 #445

Open
cosven opened this issue Jan 10, 2021 · 0 comments
Open

歌曲列表滚动时候 FPS 略低 #445

cosven opened this issue Jan 10, 2021 · 0 comments

Comments

@cosven
Copy link
Member

cosven commented Jan 10, 2021

Describe the bug
对比 Chrome 和 FeelUOwn 的页面滚动效果,FeelUOwn 的滚动会给人掉帧的感觉。
尤其是使用 trackpad 来滚动页面。

Desktop:

  • OS: macOS
  • Version: 3.7a0

Additional Context
写了如下程序来试验是 FeelUOwn 的实现问题,还是 Qt ListView 天生比较慢。
下面代码表现仍然会有同样的问题,所以目前怀疑是 QListView 的问题... emmm

from feeluown.widgets.songs import *
from feeluown.library.models import BriefSongModel

from PyQt5.QtWidgets import QApplication


app = QApplication([])

songs = []
for i in range(0, 300):
    song = BriefSongModel(identifier=i, source='xiami',
                          title='夜空中最亮的星', artists_name='终结论', album_name='hey')
    songs.append(song)

model = SongsTableModel(songs=songs)
view = SongsTableView()
view.setModel(model)
view.show()
app.exec()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant