dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
768 stars 300 forks source link

FBORenderContextProvider optimization #145

Open alariq opened 6 years ago

alariq commented 6 years ago

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: https://github.com/dwmkerr/sharpgl/issues/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!)

Delphinidae84 commented 3 years ago

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

alariq commented 3 years ago

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