mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
DolphinQt: Reduce latency of TAS input's controller input passthrough
Fixes https://bugs.dolphin-emu.org/issues/12676. Needs testing to see if this impacts performance when controller inputs are changing.
This commit is contained in:
@ -17,3 +17,11 @@ static void QueueOnObject(T* obj, F&& func)
|
||||
QObject src;
|
||||
QObject::connect(&src, &QObject::destroyed, obj, std::forward<F>(func), Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
template <typename T, typename F>
|
||||
static void QueueOnObjectBlocking(T* obj, F&& func)
|
||||
{
|
||||
QObject src;
|
||||
QObject::connect(&src, &QObject::destroyed, obj, std::forward<F>(func),
|
||||
Qt::BlockingQueuedConnection);
|
||||
}
|
||||
|
Reference in New Issue
Block a user