mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
Merge pull request #8403 from jordan-woyak/netplay-wiimote-buffer-fix
NetPlay: Allow Wii Remote buffer size to decrease
This commit is contained in:
commit
6a15de58f4
@ -1926,15 +1926,15 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size, u8 repor
|
||||
if (m_wiimote_map[_number] == m_local_player->pid)
|
||||
{
|
||||
nw.assign(data, data + size);
|
||||
do
|
||||
|
||||
// TODO: add a seperate setting for wiimote buffer?
|
||||
while (m_wiimote_buffer[_number].Size() <= m_target_buffer_size * 200 / 120)
|
||||
{
|
||||
// add to buffer
|
||||
m_wiimote_buffer[_number].Push(nw);
|
||||
|
||||
SendWiimoteState(_number, nw);
|
||||
} while (m_wiimote_buffer[_number].Size() <=
|
||||
m_target_buffer_size * 200 /
|
||||
120); // TODO: add a seperate setting for wiimote buffer?
|
||||
}
|
||||
}
|
||||
|
||||
} // unlock players
|
||||
|
Loading…
x
Reference in New Issue
Block a user