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

FBORenderContextProvider optimization #145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alariq
Copy link

@alariq alariq commented Mar 2, 2018

This change uses 2 interleaving OpenGL PixelBufferObjects for readback instead of syncing CPU to GPU all the time.

I've also incorporated here changes proposed by @ftlPhysicsGuy ( here: #121)

Additional improvement would be to not fill any intermediary structures and fill writeable image directly (as we are not using framebuffer of hidden window!)

@@ -167,6 +226,12 @@ public override void Blit(IntPtr hdc)
protected DIBSection dibSection = new DIBSection();
protected OpenGL gl;

protected bool usePBO = false;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this to true to enable PBO based optimization

@Delphinidae84
Copy link

@dwmkerr Could you estimate when or if this pull request will be merged?

@alariq
Copy link
Author

alariq commented Mar 30, 2021

I did this change quite a long time ago, but if you need my help let me know

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.

2 participants