1
Window / Re: FPS set to 60 when Fullscreen on a 165hz monitor (Arch Linux + i3wm)
« on: November 11, 2023, 04:42:27 pm »
Thank you for the information and your time.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Do other apps try to set it to 32-bit bit depth even though your desktop is set to 24-bit (I presume since getDesktop clearly gets 24-bit)It doesnt seem like it. (my monitor does not change refresh rate when opening/closing the apps)
You likely don't need 32-bit anyway as its only transparency that's the improvement from 24-bit.How big is actually the difference. (And why does it say on Lenovo's website ( https://www.lenovo.com/il/en/monitors/G27q-30) say that it has a color depth of 8-bit (6+FRC) color depth. maybe bits per color channel?)
Have you tried to open a fullscreen window with manual values (width and height) as well as manual 24-bit bit depth and does that work as expected?yes I tried and everything behaved as it should like it did when using getDesktop().
It should be noted that the method descriptions above the declarations so the description for "getDesktopMode()" is:oopsQuote////////////////////////////////////////////////////////////
/// \brief Get the current desktop video mode
///
/// \return Current desktop video mode
///
////////////////////////////////////////////////////////////
std::cout << sf::VideoMode::getDesktopMode().bitsPerPixel << "\n";output: 24
static VideoMode getDesktopMode();
////////////////////////////////////////////////////////////
/// \brief Retrieve all the video modes supported in fullscreen mode
///
/// When creating a fullscreen window, the video mode is restricted
/// to be compatible with what the graphics driver and monitor
/// support. This function returns the complete list of all video
/// modes that can be used in fullscreen mode.
/// The returned array is sorted from best to worst, so that
/// the first element will always give the best mode (higher
/// width, height and bits-per-pixel).
///
/// \return Array containing all the supported fullscreen modes
///
////////////////////////////////////////////////////////////