summaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.h
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2019-01-17 00:01:00 -0700
committerJames Rowe <jroweboy@gmail.com>2019-01-19 23:34:03 -0700
commit08fcf41b0a3d4e6066cb72f47c3e1d94bb7fc408 (patch)
tree5de343927c3ac46b141ff2675bed7d9c720debc7 /src/yuzu/bootmanager.h
parent83f8d1aa2ebaf47323b31ff1c5af6f0ced37bedc (diff)
QT Frontend: Add a Loading screen with progressbar
With shader caches on the horizon, one requirement is to provide visible feedback for the progress. The shader cache reportedly takes several minutes to load for large caches that were invalidated, and as such we should provide a loading screen with progress. Adds a loading screen widget that will be shown until the first frame of the game is swapped. This was chosen in case shader caches are not being used, several games still take more than a few seconds to launch and could benefit from a loading screen.
Diffstat (limited to 'src/yuzu/bootmanager.h')
-rw-r--r--src/yuzu/bootmanager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index 4e3028215..d1f37e503 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -152,6 +152,7 @@ public slots:
signals:
/// Emitted when the window is closed
void Closed();
+ void FirstFrameDisplayed();
private:
std::pair<unsigned, unsigned> ScaleTouch(const QPointF pos) const;
@@ -171,6 +172,8 @@ private:
/// Temporary storage of the screenshot taken
QImage screenshot_image;
+ bool first_frame = false;
+
protected:
void showEvent(QShowEvent* event) override;
};