OSDN Git Service

[VM][X1] Try to fix slow down.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 11 Dec 2015 13:22:09 +0000 (22:22 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 11 Dec 2015 13:22:09 +0000 (22:22 +0900)
source/src/vm/x1/x1.cpp
source/src/vm/x1/x1.h

index 2610bf3..dcb7fba 100644 (file)
@@ -67,7 +67,7 @@ VM::VM(EMU* parent_emu) : emu(parent_emu)
        first_device = last_device = NULL;
        dummy = new DEVICE(this, emu);  // must be 1st device
        event = new EVENT(this, emu);   // must be 2nd device
-       
+
        drec = new DATAREC(this, emu);
        crtc = new HD46505(this, emu);
        pio = new I8255(this, emu);
@@ -153,10 +153,6 @@ VM::VM(EMU* parent_emu) : emu(parent_emu)
 //     sio->set_rx_clock(0, 9600 * 16);        // clock is from Z-80CTC ch1 (2MHz/13)
 //     sio->set_tx_clock(1, 4800 * 16);        // 4800 baud for mouse
 //     sio->set_rx_clock(1, 4800 * 16);        // clock is from Z-80CTC ch2 (2MHz/26)
-       //event->register_frame_event(crtc);
-       //event->register_vline_event(crtc);
-       //event->register_frame_event(display);
-       //event->register_vline_event(display);
    
        if(sound_device_type >= 1) {
                ctc1->set_context_zc0(ctc1, SIG_Z80CTC_TRIG_3, 1);
index f44b463..02529a9 100644 (file)
 #endif
 
 // device informations for virtual machine (x1)
-#ifdef _X1TURBO_FEATURE
+//#ifdef _X1TURBO_FEATURE
 //24KHz
-#define FRAMES_PER_SEC 55.49
-#define LINES_PER_FRAME        448
-#define CHARS_PER_LINE 56
-#define HD46505_HORIZ_FREQ     24860
-#else
+//#define FRAMES_PER_SEC       55.49
+//#define LINES_PER_FRAME      448
+//#define CHARS_PER_LINE       56
+//#define HD46505_HORIZ_FREQ   24860
+//#else
 // 15KHz
 #define FRAMES_PER_SEC         61.94
 #define LINES_PER_FRAME        258
 #define CHARS_PER_LINE         56
 #define HD46505_HORIZ_FREQ     15980
-#endif
+//#endif
 #define CPU_CLOCKS             4000000
 #define SCREEN_WIDTH           640
 #define SCREEN_HEIGHT          400
@@ -166,7 +166,7 @@ protected:
        
        // devices for x1
        EVENT* event;
-       
+
        DATAREC* drec;
        HD46505* crtc;
        I8255* pio;