Skip to content

Conversation

@ro8inmorgan
Copy link
Collaborator

Ensure there's only 2 buffers, 1 to draw to the screen and 1 to render current game frame on.

Probably its already using this by default (On most systems triple (or more) buffer is optional), but just to be sure it doesn't hurt to set it explicitly.

In case you are wondering why no single buffer? It doesn't exists while using vsync. The GPU needs atleast 2 buffers, one which the GPU is reading and drawing to your screen and another one that can be used to render your stuff to. Each frame you just swap the frames around, thus why the drawing call is called GL_Swap();

@ro8inmorgan ro8inmorgan changed the title Force double buffer to make sure to have lowest input lag possible fix: Force double buffer to make sure to have lowest input lag possible Jul 1, 2025
@ro8inmorgan
Copy link
Collaborator Author

This can be merged if anyone is doing an update

@frysee
Copy link
Collaborator

frysee commented Jul 1, 2025

Is there any case where this isn't the default behavior anyway?

@ro8inmorgan
Copy link
Collaborator Author

Is there any case where this isn't the default behavior anyway?

It def can be set to something else through driver settings and such. I don't even know what the default setting is on the Brick to be honest. So just putting it in there to be sure, also maybe in the future we can use it as a setting for a double/triple buffer option as sometimes triple can help squeeze a little bit extra performance in trade for higher latency for the more demanding emulators.

I guess its also just cleaner to have it enforced idk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants