From 8d94a046052bc5c041831a77b2a9a8b59e1f527e Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 4 May 2017 22:42:32 -0500 Subject: 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. --- engines/sci/graphics/frameout.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'engines/sci/graphics/frameout.h') 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 @@ -60,28 +60,6 @@ public: void clear(); 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: -- cgit v1.2.3