gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, noise, updated. release_0_8_9_final-1


From: Rob Savoye
Subject: [Gnash-commit] [SCM] Gnash branch, noise, updated. release_0_8_9_final-1172-g16b7a3a
Date: Tue, 13 Sep 2011 15:37:27 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, noise has been updated
       via  16b7a3aeac7957b4aee5f01c7af1e573f6e3396d (commit)
       via  cac4d53390873466ba710bda7b3512f4d0ec135f (commit)
      from  d7e21679125e98814dee3ba0649f1d7f37f48b06 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=16b7a3aeac7957b4aee5f01c7af1e573f6e3396d


commit 16b7a3aeac7957b4aee5f01c7af1e573f6e3396d
Author: Rob Savoye <address@hidden>
Date:   Tue Sep 13 09:37:02 2011 -0600

    increase the default delay to 50ms

diff --git a/gui/Player.cpp b/gui/Player.cpp
index e9d0110..29eaeab 100644
--- a/gui/Player.cpp
+++ b/gui/Player.cpp
@@ -542,8 +542,8 @@ Player::run(int argc, char* argv[], const std::string& 
infile,
     _movieDef->completeLoad();
 
     if (! _delay) {
-        // 10ms per heart beat
-        _delay = 10; 
+        // 50ms per heart beat, which works out to be about 20fps
+        _delay = 50; 
     }
     _gui->setInterval(_delay);
 

http://git.savannah.gnu.org/cgit//commit/?id=cac4d53390873466ba710bda7b3512f4d0ec135f


commit cac4d53390873466ba710bda7b3512f4d0ec135f
Author: Rob Savoye <address@hidden>
Date:   Tue Sep 13 09:36:17 2011 -0600

    Don't do anything if we have no timers, just return so we don't waste cpu 
cycles

diff --git a/libcore/movie_root.cpp b/libcore/movie_root.cpp
index f82b9b2..2ae29c5 100644
--- a/libcore/movie_root.cpp
+++ b/libcore/movie_root.cpp
@@ -1692,9 +1692,15 @@ void
 movie_root::executeTimers()
 {
 #ifdef GNASH_DEBUG_TIMERS_EXPIRATION
-        log_debug("Checking %d timers for expiry", _intervalTimers.size());
+    log_debug("Checking %d timers for expiry", _intervalTimers.size());
 #endif
 
+    // Don't do anything if we have no timers, just return so we don't
+    // waste cpu cycles.
+    if (_intervalTimers.size() == 0) {
+        return;
+    }
+
     unsigned long now = _vm.getTime();
 
     typedef std::multimap<unsigned int, boost::shared_ptr<Timer> >

-----------------------------------------------------------------------

Summary of changes:
 gui/Player.cpp         |    4 ++--
 libcore/movie_root.cpp |    8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]