vsync_adjust=2 for low latency mode.

This commit is contained in:
sorgelig
2018-12-26 22:12:10 +08:00
parent b6e1b127ca
commit 33921e306f
3 changed files with 5 additions and 4 deletions

View File

@@ -2810,7 +2810,7 @@ static void setVideo()
for (int i = 9; i < 21; i++)
{
printf("0x%X, ", vitems[i]);
if (i & 1) spi_w(vitems[i]);
if (i & 1) spi_w(vitems[i] | ((i==9 && cfg.vsync_adjust==2) ? 0x8000 : 0));
else
{
spi_w(vitems[i]);
@@ -2904,7 +2904,7 @@ void parse_video_mode()
static int adjust_video_mode(uint32_t vtime)
{
printf("Adjust VSync.\n");
printf("Adjust VSync(%d).\n", cfg.vsync_adjust);
double Fpix = 100 * (vitems[1] + vitems[2] + vitems[3] + vitems[4]) * (vitems[5] + vitems[6] + vitems[7] + vitems[8]);
Fpix /= vtime;