lsnes-dumpavi: Don't hold back on emulation speed

This commit is contained in:
Ilari Liusvaara 2012-09-08 15:15:59 +03:00
parent 369ff0145e
commit 7cee3d981f
4 changed files with 8 additions and 1 deletions

View file

@ -14,6 +14,8 @@
#define HISTORY_FRAMES 10 #define HISTORY_FRAMES 10
extern bool dummy_interface;
namespace namespace
{ {
uint64_t last_time_update = 0; uint64_t last_time_update = 0;
@ -189,7 +191,7 @@ void ack_frame_tick(uint64_t usec) throw()
uint64_t to_wait_frame(uint64_t usec) throw() uint64_t to_wait_frame(uint64_t usec) throw()
{ {
auto target = targetfps.read(); auto target = targetfps.read();
if(!frame_number || target.first || turboed) if(!frame_number || target.first || turboed || dummy_interface)
return 0; return 0;
uint64_t lintime = get_time(usec, true); uint64_t lintime = get_time(usec, true);
uint64_t frame_lasted = lintime - frame_start_times[0]; uint64_t frame_lasted = lintime - frame_start_times[0];

View file

@ -3,6 +3,8 @@
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
bool dummy_interface = true;
namespace namespace
{ {
uint64_t next_message_to_print = 0; uint64_t next_message_to_print = 0;

View file

@ -23,6 +23,7 @@
#include "SDL_main.h" #include "SDL_main.h"
#endif #endif
bool dummy_interface = false;
struct moviefile generate_movie_template(std::vector<std::string> cmdline, loaded_rom& r) struct moviefile generate_movie_template(std::vector<std::string> cmdline, loaded_rom& r)
{ {

View file

@ -46,6 +46,8 @@ wxwin_messages* msg_window;
wxwin_mainwindow* main_window; wxwin_mainwindow* main_window;
std::string our_rom_name; std::string our_rom_name;
bool dummy_interface = false;
namespace namespace
{ {
thread_id* ui_thread; thread_id* ui_thread;