aboutsummaryrefslogtreecommitdiff
path: root/engines/bbvs
diff options
context:
space:
mode:
authorjohndoe1232014-01-26 00:42:20 +0100
committerjohndoe1232014-01-30 20:16:33 +0100
commit8fcfe6100396b4ae02d53b546cd57693152c3dda (patch)
tree9a8e13d3560675aa7b346f890463b81b6e49fb1d /engines/bbvs
parentbb1dc9136b4683a9c587b8b6c2ca19588944a33e (diff)
downloadscummvm-rg350-8fcfe6100396b4ae02d53b546cd57693152c3dda.tar.gz
scummvm-rg350-8fcfe6100396b4ae02d53b546cd57693152c3dda.tar.bz2
scummvm-rg350-8fcfe6100396b4ae02d53b546cd57693152c3dda.zip
BBVS: Add delayMillis to update loops to save some cpu time
Diffstat (limited to 'engines/bbvs')
-rw-r--r--engines/bbvs/bbvs.cpp2
-rw-r--r--engines/bbvs/minigames/bbairguitar.cpp2
-rw-r--r--engines/bbvs/minigames/bbant.cpp2
-rw-r--r--engines/bbvs/minigames/bbloogie.cpp2
-rw-r--r--engines/bbvs/minigames/bbtennis.cpp2
5 files changed, 10 insertions, 0 deletions
diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp
index b2a966688b..88d40fe4dc 100644
--- a/engines/bbvs/bbvs.cpp
+++ b/engines/bbvs/bbvs.cpp
@@ -309,6 +309,8 @@ void BbvsEngine::updateGame() {
_screen->drawDrawList(drawList, _spriteModule);
drawScreen();
}
+
+ _system->delayMillis(10);
}
diff --git a/engines/bbvs/minigames/bbairguitar.cpp b/engines/bbvs/minigames/bbairguitar.cpp
index f65c1b522a..0453ec50b8 100644
--- a/engines/bbvs/minigames/bbairguitar.cpp
+++ b/engines/bbvs/minigames/bbairguitar.cpp
@@ -823,6 +823,8 @@ void MinigameBbAirGuitar::update() {
drawSprites();
+ _vm->_system->delayMillis(10);
+
}
void MinigameBbAirGuitar::play() {
diff --git a/engines/bbvs/minigames/bbant.cpp b/engines/bbvs/minigames/bbant.cpp
index f2d3ad26af..a51a9d8a08 100644
--- a/engines/bbvs/minigames/bbant.cpp
+++ b/engines/bbvs/minigames/bbant.cpp
@@ -1250,6 +1250,8 @@ void MinigameBbAnt::update() {
drawSprites();
+ _vm->_system->delayMillis(10);
+
}
void MinigameBbAnt::scale2x(int x, int y) {
diff --git a/engines/bbvs/minigames/bbloogie.cpp b/engines/bbvs/minigames/bbloogie.cpp
index 0d3fc1d65c..70e7e7d155 100644
--- a/engines/bbvs/minigames/bbloogie.cpp
+++ b/engines/bbvs/minigames/bbloogie.cpp
@@ -1341,6 +1341,8 @@ void MinigameBbLoogie::update() {
drawSprites();
+ _vm->_system->delayMillis(10);
+
}
void MinigameBbLoogie::loadSounds() {
diff --git a/engines/bbvs/minigames/bbtennis.cpp b/engines/bbvs/minigames/bbtennis.cpp
index fd02573691..82c9037954 100644
--- a/engines/bbvs/minigames/bbtennis.cpp
+++ b/engines/bbvs/minigames/bbtennis.cpp
@@ -1260,6 +1260,8 @@ void MinigameBbTennis::update() {
drawSprites();
+ _vm->_system->delayMillis(10);
+
}
void MinigameBbTennis::loadSounds() {