dwmkerr / sharpgl

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

Added Extensions NV_DX_interop(2) #32

Closed LittleFox94 closed 8 years ago

LittleFox94 commented 10 years ago

Using NV_DX_interop can make the WPF GL-Control a lot faster because there is no need to copy the Framebuffer to system ram, converting it's pixel format and then copying it back to graphics ram.

I can provide a working example if needed :)

dwmkerr commented 10 years ago

That's seriously cool, if we can avoid the round trip there that would be a serious improvement - actually a working example would be extremely helpful - what I'll do is aim to get this in the forthcoming 2.4 release, I'm also going to set up a very simple scene, profile before and after and then include some example metrics for the improvements, thanks for reaching out on this one!

LittleFox94 commented 10 years ago

I can post an example which is working but needs some cleaning, it's somewhat tied to our code and doesn't have resize-events for example. Also this example needs SlimDX to create the surfaces.

I'll made another comment when I've pushed the sample to my fork :)

LittleFox94 commented 10 years ago

I've added an example, all known problems are listed in the changelog.

I'll probally fix the resizing issue as it's a blocker for my work, but if you (or anyone else) has an idea, just do it :)

dwmkerr commented 10 years ago

Cool, I'll get this merged in when I'm ready to get the next release done - thanks for your help!

LittleFox94 commented 10 years ago

Cool :) The resizing bug is fixed at work, will try to commit it tomorrow (I don't use windows at home).

dwmkerr commented 10 years ago

Awesome, no rush as it'll be a week or so before I can get the time to work on the next release :)

LittleFox94 commented 10 years ago

I finally got the time to commit the fix for the resizing issue. Sorry for the delay

dwmkerr commented 10 years ago

No probs will merge it soon!

Athenstean commented 10 years ago

Hey, I was really looking forward to this. Any plans to merge it into an official release soon?

dwmkerr commented 10 years ago

Unfortunately I've been super busy (and still am) at work, so it might be a while before I get to make a new release of SharpGL but I'll try and get this merged in soon so that at least the master branch has these changes

LittleFox94 commented 9 years ago

Are you still interested in this? I could re-create the repository and resolve the conflict Github is reporting.

dwmkerr commented 9 years ago

Hi Moritz,

Sorry for the late reply, yes indeed I am still interested, if you can create a PR which is ready to merge then I'll start the process of getting it into the codebase!

Thanks,

Dave

On 25 August 2015 at 21:26, Moritz Grosch (LittleFox) < notifications@github.com> wrote:

Are you still interested in this? I could re-create the repository and resolve the conflict Github is reporting.

— Reply to this email directly or view it on GitHub https://github.com/dwmkerr/sharpgl/pull/32#issuecomment-134584815.

LittleFox94 commented 8 years ago

Just a quick status update: I have a working version at home, will test it for performance and come back here with a push. This will probably result in a new pull-request, as the original repo has been deleted a while ago. I don't start Windows very often, so this may take a while - sorry.

LittleFox94 commented 8 years ago

Please see the new pull-request.