remove rdp sync speed hack (#567)

This commit is contained in:
Logan McNaughton
2025-09-15 09:50:23 +02:00
committed by GitHub
parent f6c7e3d3c0
commit 7b8c549e8e
+2 -8
View File
@@ -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;