diff options
author | sylvaintv | 2011-03-08 00:51:21 +0100 |
---|---|---|
committer | sylvaintv | 2011-03-08 00:51:21 +0100 |
commit | 53d6a4f831c9e7c7de594cdaed3c8546b41ea2e2 (patch) | |
tree | 4b89d219842fad3a6ff00778e175c3868b4fe628 /engines/toon/movie.cpp | |
parent | 7d36aabd4271212e2c0b741172a40d07871e5b4c (diff) | |
download | scummvm-rg350-53d6a4f831c9e7c7de594cdaed3c8546b41ea2e2.tar.gz scummvm-rg350-53d6a4f831c9e7c7de594cdaed3c8546b41ea2e2.tar.bz2 scummvm-rg350-53d6a4f831c9e7c7de594cdaed3c8546b41ea2e2.zip |
TOON: Decrease CPU usage
Added dirty rects
Reduced the max FPS from 60 to 30
Diffstat (limited to 'engines/toon/movie.cpp')
-rw-r--r-- | engines/toon/movie.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp index bf4b6639fa..68c09fb586 100644 --- a/engines/toon/movie.cpp +++ b/engines/toon/movie.cpp @@ -135,11 +135,13 @@ bool Movie::playVideo(bool isFirstIntroVideo) { Common::Event event; while (_vm->getSystem()->getEventManager()->pollEvent(event)) if ((event.type == Common::EVENT_KEYDOWN && event.kbd.keycode == Common::KEYCODE_ESCAPE)) { + _vm->dirtyAllScreen(); return false; } _vm->getSystem()->delayMillis(10); } + _vm->dirtyAllScreen(); return !_vm->shouldQuit(); } |