mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-25 00:04:54 +02:00
remove rdp sync speed hack (#567)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user