added debugging for old/new hsync/vsync calculations