Hotrian / OpenVRDesktopDisplayPortal

Put your favorite Desktop Window directly into any OpenVR game!
Other
447 stars 97 forks source link

GDI Stuff creates a lot of garbage. Reduce garbage. #15

Closed Hotrian closed 7 years ago

Hotrian commented 7 years ago

Reducing garbage creation/collection might cause bugs, but definitely improves performance. This will probably be in the next release.

Edit: GDI stuff garbage is pretty significant (20% approx of application time). I now get 100+FPS average (up from 60-80 average) with a 485x285 video @ 24FPS capture (w/ Direct Capture) pic. I have an FX-6300 and an R7 265.

Hotrian commented 7 years ago

Seems I closed this prematurely, as the "fix" introduced in 0a7ec4fa4ee85f6de84b6a46b971e6f5b31b2c61 actually caused the program to fail reliably after 8 minutes or so,

Hotrian commented 7 years ago

Closing this one now because I will no longer care about the GDI API moving forward. I now have a better API that can capture the full desktop at 150+FPS, so the garbage GDI created is a non-issue.

Unfortunately, the new API doesn't work on Windows 7, so moving forward Windows 7 will likely lose support. Sorry guys :(.