andykorth / opentk

The Open Toolkit is a low-level C# library that wraps OpenGL, OpenCL and OpenAL. This fork has been superseded by https://github.com/thefiddler/opentk Please direct your attention to that official repository.
71 stars 27 forks source link

Remove lambdas from WinRawMouse.ProcessMouseEvents #12

Closed zastrowm closed 11 years ago

zastrowm commented 11 years ago

Change WinRawMouse.ProcessMouseEvents to call code directly instead of using lambdas. The lambdas caused memory allocations and were unneeded.

Example of allocations that no longer occur with patched code:

Profiling

As noted in Commit 5b0db16a89b9648d04627ae60e9020dc7521b54a

andykorth commented 11 years ago

Thanks for the patch!