dwmkerr / sharpgl

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

SharpGL for WPF call to GC.Collect #110

Open ThVoss opened 9 years ago

ThVoss commented 9 years ago

Hi,

I found that the call to GC.Collect takes quite a long time (80-100 ms) in my case. As this call is done in the render process, it directly influences the amount of fps you can achieve.

I know that this call is done to prevent "OutOfMemoryExceptions".

In my opinion this is only required for x86 Targets, as each process can only use ~1GB of Memory.

For an x64 target this Limitation is not there. and it seems to run quite ok here without the GC.Collect call.

Is there any experience with it?

Thank you

Thomas