Defer vsync_offset application

- Apply vsync_offset only during the vertical retrace period for a more accurate result
- Change the calculation of displine_offs and remove redundant checks around rendering calls
- Remove unnecessary clamping logic for crtc[7]
- Remove a hack from the previous commit by correctly triggering VSYNC processing when the vertical counter matches the actual crtc[7]
This commit is contained in:
pixel-jupiter
2025-10-03 16:44:53 +03:00
parent 49a3eca742
commit beb3733757
2 changed files with 21 additions and 34 deletions

View File

@@ -41,6 +41,7 @@ typedef struct t1kvid_t {
bool baseline_ready;
int hsync_offset;
int vsync_offset;
int vsync_offset_pending;
int linepos;
int displine;