Refactor AchievementsWindow::UpdateData to take a partial update parameter
UpdateData in AchievementsWindow now only updates the components being requested, massively improving the window's performance. The parameter is UpdatedItems in AchievementManager, which tracks which portions of the system have been updated for every update callback.
This commit is contained in:
1 parent
fa2210f80d
commit
4214c301ef
8 files changed
+88
-48
No files matched your search
@@ -6,6 +6,8 @@
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
#include <QDialog>
|
||||
|
||||
#include "Core/AchievementManager.h"
|
||||
|
||||
class AchievementHeaderWidget;
|
||||
class AchievementLeaderboardWidget;
|
||||
class AchievementSettingsWidget;
|
||||
@@ -19,7 +21,7 @@ class AchievementsWindow : public QDialog
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AchievementsWindow(QWidget* parent);
|
||||
void UpdateData();
|
||||
void UpdateData(AchievementManager::UpdatedItems updated_items);
|
||||
void ForceSettingsTab();
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user