2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

renderer_opengl: Reduce swap chain size to 3.

This commit is contained in:
bunnei 2020-02-27 19:50:17 -05:00
parent a17214baea
commit ebbfe73557

View file

@ -25,9 +25,8 @@
namespace OpenGL { namespace OpenGL {
// If the size of this is too small, it ends up creating a soft cap on FPS as the renderer will have // If the size of this is too small, it ends up creating a soft cap on FPS as the renderer will have
// to wait on available presentation frames. There doesn't seem to be much of a downside to a larger // to wait on available presentation frames.
// number but 9 swap textures at 60FPS presentation allows for 800% speed so thats probably fine constexpr std::size_t SWAP_CHAIN_SIZE = 3;
constexpr std::size_t SWAP_CHAIN_SIZE = 9;
struct Frame { struct Frame {
u32 width{}; /// Width of the frame (to detect resize) u32 width{}; /// Width of the frame (to detect resize)