summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-08-12 20:41:28 -0500
committerGravatar Subv2018-08-12 20:41:28 -0500
commitd9237660429adaa9f549d10e79252a713f1da874 (patch)
tree6573f68774fbb2e2e7019c1e6c2c5454bf60e899 /src/common/file_util.cpp
parentKernel/SVC: Don't reschedule the current core when creating a new thread. (diff)
downloadyuzu-d9237660429adaa9f549d10e79252a713f1da874.tar.gz
yuzu-d9237660429adaa9f549d10e79252a713f1da874.tar.xz
yuzu-d9237660429adaa9f549d10e79252a713f1da874.zip
CPU/Timing: Use an approximated amortized amount of ticks when advancing timing.
We divide the number of ticks to add by the number of cores (4) to obtain a more or less rough estimate of the actual number of ticks added. This assumes that all 4 cores are doing similar work. Previously we were adding ~4 times the number of ticks, thus making the games think that time was going way too fast. This lets us bypass certain hangs in some games like Breath of the Wild. We should modify our CoreTiming to support multiple cores (both running in a single thread, and in multiple host threads).
Diffstat (limited to 'src/common/file_util.cpp')
0 files changed, 0 insertions, 0 deletions