diff options
author | Colin Snover | 2017-07-22 15:54:05 -0500 |
---|---|---|
committer | Colin Snover | 2017-07-23 10:35:13 -0500 |
commit | 0beb259278dfd18757bf9484a6123edf4b44864e (patch) | |
tree | ac40430c241b1423946a87b91deb999250494f7e /engines/sci/event.h | |
parent | 6b87b13ab1ead1115cce6a897ee78c4eba45d76d (diff) | |
download | scummvm-rg350-0beb259278dfd18757bf9484a6123edf4b44864e.tar.gz scummvm-rg350-0beb259278dfd18757bf9484a6123edf4b44864e.tar.bz2 scummvm-rg350-0beb259278dfd18757bf9484a6123edf4b44864e.zip |
SCI32: Improve performance when flushing events during video playback
Calling through EventManager::getSciEvent to flush events is
pretty inefficient and created stalls that lead to dropped
frames during the chapter 7 chase in Phantasmagoria 1.
If necessary, performance could be improved further by extending
Common::EventManager to expose SDL_FlushEvents, but this seems to
finish in 0-1ms so should be OK for now.
Refs Trac#9974, Trac#9975.
Diffstat (limited to 'engines/sci/event.h')
-rw-r--r-- | engines/sci/event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/event.h b/engines/sci/event.h index b06d2ae429..614a5a64e7 100644 --- a/engines/sci/event.h +++ b/engines/sci/event.h @@ -138,6 +138,7 @@ public: void updateScreen(); SciEvent getSciEvent(uint32 mask); + void flushEvents(); private: SciEvent getScummVMEvent(); |