mirror of
https://github.com/wiiu-env/NotificationModule.git
synced 2024-06-02 14:48:44 +02:00
Compare commits
3 Commits
Notificati
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
c8dbca8fad | ||
|
36993e1630 | ||
|
5801f61ec7 |
|
@ -1,4 +1,4 @@
|
||||||
FROM ghcr.io/wiiu-env/devkitppc:20240423
|
FROM ghcr.io/wiiu-env/devkitppc:20240505
|
||||||
|
|
||||||
COPY --from=ghcr.io/wiiu-env/libnotifications:20240426 /artifacts $DEVKITPRO
|
COPY --from=ghcr.io/wiiu-env/libnotifications:20240426 /artifacts $DEVKITPRO
|
||||||
COPY --from=ghcr.io/wiiu-env/libmappedmemory:20230621 /artifacts $DEVKITPRO
|
COPY --from=ghcr.io/wiiu-env/libmappedmemory:20230621 /artifacts $DEVKITPRO
|
||||||
|
|
|
@ -72,6 +72,9 @@ void drawScreenshotSavedTexture2(GX2ColorBuffer *colorBuffer, GX2ScanTarget scan
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TryAddFromQueue() {
|
static void TryAddFromQueue() {
|
||||||
|
if (!gOverlayFrame) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::lock_guard overlay_lock(gOverlayFrameMutex);
|
std::lock_guard overlay_lock(gOverlayFrameMutex);
|
||||||
// Add notification that had been called before the overlay was ready
|
// Add notification that had been called before the overlay was ready
|
||||||
for (const auto ¬ification : gOverlayQueueDuringStartup) {
|
for (const auto ¬ification : gOverlayQueueDuringStartup) {
|
||||||
|
|
|
@ -3,16 +3,16 @@
|
||||||
|
|
||||||
class Timer {
|
class Timer {
|
||||||
public:
|
public:
|
||||||
Timer() { clock_gettime(CLOCK_REALTIME, &beg_); }
|
Timer() { clock_gettime(CLOCK_MONOTONIC, &beg_); }
|
||||||
|
|
||||||
double elapsed() {
|
double elapsed() {
|
||||||
clock_gettime(CLOCK_REALTIME, &end_);
|
clock_gettime(CLOCK_MONOTONIC, &end_);
|
||||||
return end_.tv_sec - beg_.tv_sec +
|
return end_.tv_sec - beg_.tv_sec +
|
||||||
(end_.tv_nsec - beg_.tv_nsec) / 1000000000.;
|
(end_.tv_nsec - beg_.tv_nsec) / 1000000000.;
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset() { clock_gettime(CLOCK_REALTIME, &beg_); }
|
void reset() { clock_gettime(CLOCK_MONOTONIC, &beg_); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
timespec beg_, end_;
|
timespec beg_, end_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user