summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2014-08-17 20:35:18 -0400
committerGravatar bunnei2014-08-17 20:35:18 -0400
commit3cd5ede355b3718188b706a60751a87f8258668d (patch)
treed62a84512ae55a0deee2d67be822a962ceb1f9ec
parentMerge pull request #48 from linkmauve/master (diff)
parentRemoved redundant loop in EmuThread::run() (diff)
downloadyuzu-3cd5ede355b3718188b706a60751a87f8258668d.tar.gz
yuzu-3cd5ede355b3718188b706a60751a87f8258668d.tar.xz
yuzu-3cd5ede355b3718188b706a60751a87f8258668d.zip
Merge pull request #49 from archshift/redundantloop
Removed redundant loop in EmuThread::run()
Diffstat (limited to '')
-rw-r--r--src/citra_qt/bootmanager.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp
index b0aa1e561..250df59f8 100644
--- a/src/citra_qt/bootmanager.cpp
+++ b/src/citra_qt/bootmanager.cpp
@@ -32,17 +32,14 @@ void EmuThread::run()
32{ 32{
33 while (true) 33 while (true)
34 { 34 {
35 for (int tight_loop = 0; tight_loop < 10000; ++tight_loop) 35 if (cpu_running || exec_cpu_step)
36 { 36 {
37 if (cpu_running || exec_cpu_step) 37 if (exec_cpu_step)
38 { 38 exec_cpu_step = false;
39 if (exec_cpu_step) 39
40 exec_cpu_step = false; 40 Core::SingleStep();
41 41 if (!cpu_running)
42 Core::SingleStep(); 42 emit CPUStepped();
43 if (!cpu_running)
44 emit CPUStepped();
45 }
46 } 43 }
47 } 44 }
48 45