aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2012-12-10 23:34:18 -0500
committerCory Fields <theuni-nospam-@xbmc.org>2012-12-10 23:34:21 -0500
commit49b2d1fa82eb140fb251dd212ed464a7fd4dc286 (patch)
tree41bc5f9fb066ec689fc17cd03d7fe91bfaad0790
parentde75f8d99d6a8c8bc08b873f3a30832590d7f065 (diff)
[droid] Hack Hack. Stop AE from chewing up the cpu
I really don't like this, but it's the safest thing we could come up with for Frodo. On my hardware, cpu usage drops from 45% to 15% when idling when this change is made. Presumably we should be sleeping somewhere in the Android sink that we are not doing currently. For Android, we should be suspending, but it causes a race that is too complex to address at this point in the release cycle. When we do suspend, cpu usage drops further to 8%. This needs to be DROPPED post-Frodo, and completely re-evaluated.
-rw-r--r--xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp b/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
index e3130a0382..7cbae7c24f 100644
--- a/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
+++ b/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
@@ -1019,8 +1019,10 @@ void CSoftAE::Run()
restart = true;
}
+#if !defined(TARGET_ANDROID)
/* Handle idle or forced suspend */
ProcessSuspend();
+#endif
/* if we are told to restart */
if (m_reOpen || restart || !m_sink)