mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00: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:
parent
ca064b55fe
commit
1a5e0c2084
2 changed files with 16 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue