summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-06-23 23:08:21 +1200
committerScott Mansell <phiren@gmail.com>2015-06-24 19:23:10 +1200
commit8b4734133e9b5b74d8a987c680fb80b53b8ece27 (patch)
tree9f57627ecef9a9df4297be1b6e428b6dd4d59f42 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
parent03124ec3f0d23a28429a91d5096ab5292bff51e6 (diff)
IPC_HLE: Don't open/close file for every single file operation.
On the first boot of Pokemon Snap it copies a 144KB file to the Wii's NAND, but it only copies 32 bytes per IPC write call. This was causing dolphin to open and close the same file over 4000 times. This wouldn't usually be a huge issue, except some operating systems (namely Windows) allow 3rd party programs (namely antivirus software) to hook all accesses to the filesystem. This causes the antivirus software to scan the same file for viruses 4000+ times, which is kind of slow. This fix reduces the initial boot time of pokemon snap from 3+ min to just a few seconds. Could also improve other games which write things to NAND. Will break a few things, see the next commit for an improved fix.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
0 files changed, 0 insertions, 0 deletions