diff --git a/parallel-rdp/interface.cpp b/parallel-rdp/interface.cpp index 6580b776..5aa7aa0d 100644 --- a/parallel-rdp/interface.cpp +++ b/parallel-rdp/interface.cpp @@ -59,8 +59,6 @@ typedef struct int cmd_cur; int cmd_ptr; uint32_t region; - uint64_t vi_counter; - uint64_t last_sync; } RDP_DEVICE; static SDL_Window *window; @@ -527,7 +525,6 @@ void rdp_render_frame() { auto &device = wsi->get_device(); render_frame(device); - rdp_device.vi_counter += 1; } void rdp_update_screen() @@ -649,11 +646,8 @@ uint64_t rdp_process_commands() break; } case RDP::Op::SyncFull: - if (rdp_device.last_sync != rdp_device.vi_counter) - { - processor->wait_for_timeline(processor->signal_timeline()); - rdp_device.last_sync = rdp_device.vi_counter; - } + processor->wait_for_timeline(processor->signal_timeline()); + interrupt_timer = rdp_device.region; if (interrupt_timer == 0) interrupt_timer = 5000;