Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the role of sample_buffers and samples parameter? #793

Open
lfwin opened this issue Sep 26, 2022 · 1 comment
Open

What is the role of sample_buffers and samples parameter? #793

lfwin opened this issue Sep 26, 2022 · 1 comment

Comments

@lfwin
Copy link

lfwin commented Sep 26, 2022

the sample code is as following,
pangolin::Params windowParams; windowParams.Set("SAMPLE_BUFFERS", 0); windowParams.Set("SAMPLES", 0); pangolin::CreateWindowAndBind("Main", 1280, 800, windowParams);

Under what circumstances should I set these two parameters?

@stevenlovegrove
Copy link
Owner

I haven't used them in forever and they frankly might not even be plumbed in for all platforms. I don't believe there is any example in Pangolin right now that uses them.

From memory:
SAMPLE_BUFFERS is how many swap buffers you want for double buffering etc.
SAMPLES is how many times to supersample a pixel for antialiasing

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

No branches or pull requests

2 participants