jayhf / OpenTkControl

A faster way to use OpenTk in WPF without Forms dependencies
MIT License
30 stars 6 forks source link

Dev net472 #9

Closed migeyusu closed 1 year ago

migeyusu commented 3 years ago

Add pbo support by conditional compilation: as you see, GL.ReadPixels is a sync method which will take a lot of CPU cycles, when window is resized to 1080p, a high cpu usage in my i7-10700.

migeyusu commented 3 years ago

I've test BitmapSource.Create, Buffer.MemoryCopy and WriteableBitmap.WritePixels, performance are similar.