[gens-sdl] Moved the frameskip code into EmuLoop::runFrame().
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 6 Sep 2015 16:31:37 +0000 (12:31 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 6 Sep 2015 16:31:37 +0000 (12:31 -0400)
commit9363e0c113201b2d647cba312e7a6adc52605e3b
tree2b02722cadb4f851f2b6cb2693d8ce48820b934e
parentd52cf883e9a230e5a747bd7986fd636fb0456f16
[gens-sdl] Moved the frameskip code into EmuLoop::runFrame().

EmuLoop::runFrame() calls abstract virtual functions runFullFrame() and
runFastFrame() depending on the number of frames to skip. These are
implemented by the subclasses.

This eliminates the frameskip duplication between EmuLoop and CrazyEffectLoop.
src/gens-sdl/CrazyEffectLoop.cpp
src/gens-sdl/CrazyEffectLoop.hpp
src/gens-sdl/EmuLoop.cpp
src/gens-sdl/EmuLoop.hpp
src/gens-sdl/EventLoop.cpp
src/gens-sdl/EventLoop.hpp
src/gens-sdl/EventLoop_p.hpp