aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/frameout.h
diff options
context:
space:
mode:
authorColin Snover2017-05-04 22:42:32 -0500
committerColin Snover2017-05-04 23:00:53 -0500
commit8d94a046052bc5c041831a77b2a9a8b59e1f527e (patch)
treedf46a1cae27115944ed4b862077f27e4ac162430 /engines/sci/graphics/frameout.h
parentc057f00eab65bc31f48b40c04aadc73f1569ee3a (diff)
downloadscummvm-rg350-8d94a046052bc5c041831a77b2a9a8b59e1f527e.tar.gz
scummvm-rg350-8d94a046052bc5c041831a77b2a9a8b59e1f527e.tar.bz2
scummvm-rg350-8d94a046052bc5c041831a77b2a9a8b59e1f527e.zip
SCI32: Disable game script video benchmarking
The approach to video benchmarking used by SCI engine does not translate very well to modern video devices -- it will either be so slow that the games think the system is not capable of showing normal visual effects, or so fast that the benchmarks overflow their counters. So, game scripts that perform video benchmarking are now patched to unconditionally return the highest speed value. A pleasant but subtle side-effect of this change is that the extra time sitting at a blank screen before the start of a game (while benchmarks ran) is now gone. Fixes Trac#9741.
Diffstat (limited to 'engines/sci/graphics/frameout.h')
-rw-r--r--engines/sci/graphics/frameout.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/engines/sci/graphics/frameout.h b/engines/sci/graphics/frameout.h
index 146211544c..650c2c7889 100644
--- a/engines/sci/graphics/frameout.h
+++ b/engines/sci/graphics/frameout.h
@@ -61,28 +61,6 @@ public:
void run();
#pragma mark -
-#pragma mark Benchmarking
-private:
- /**
- * Optimization to avoid the more expensive object name
- * comparision on every call to kAddScreenItem and
- * kRemoveScreenItem.
- */
- bool _benchmarkingFinished;
-
- /**
- * Whether or not calls to kFrameOut should be framerate
- * limited to 60fps.
- */
- bool _throttleFrameOut;
-
- /**
- * Determines whether or not a screen item is the "Fred"
- * object.
- */
- bool checkForFred(const reg_t object);
-
-#pragma mark -
#pragma mark Screen items
private:
void remapMarkRedraw();