vinterberg said:Wondering if what you're seeing is a result of viewport scaling?
Maybe your viewport is scaled by a few pixels because of wrongly-calculated window size?
Edit: a resolution of 1280x696 seems "off"..?
This was indeed the case, and after adjusting the size the artifact is gone! Thank you!!
More specifically, I thought I would get the proper size for my window by doing this:
RECT WindowRect = {0};
WindowRect.right = 1280;
WindowRect.bottom = 720;
AdjustWindowRect(&WindowRect, WS_OVERLAPPEDWINDOW | WS_VISIBLE, false);
HWND WindowHandle = CreateWindow(WindowClass.lpszClassName,
"Game Window",
WS_OVERLAPPEDWINDOW | WS_VISIBLE,
CW_USEDEFAULT,
CW_USEDEFAULT,
WindowRect.right,
WindowRect.bottom,
nullptr,
nullptr,
Instance,
nullptr);
But as it turns out, after calling the AdjustWindowRect function, the WindowRect's left and top are no longer 0, so the width and height that I should pass to the CreateWindow function should be WindowRect.right-WindowRect.left and WindowRect.bottom-WindowRect.top respectively.
Endurion said:Your video hoster likes to display a VPN ad. Not nice.
My guess is also on a mismatching resolution, client size vs. swap chain size.
My apologies, I noticed this but didn't really care that much as I just wanted to get my video up and running. This was the first hit I found on google that hosts for free. Is there any particular host you'd recommend I use in the future?