skelterjohn/go.wde — pull request #12 by ajhager (2012-07-20 06:47:54+00:00)
Title: Fix GDI handle leak.

w32.BeginPaint() .. w32.EndPaint() was causing wde to leak a gdi handle
each WM_PAINT event, which would cause w32.BeginPaint to fail (and so
rendering to fail) after the gdi handle pool was exhausted (10k on
windows 7 64bit.) I'll file an issue with w32 and see if they can figure it out.

Also, making the repaint immediate, instead of invalidating the entire
screen and waiting for windows to trigger a WM_PAINT event (which is
very low priority), increases fps by x2-x3 and makes the repaint less
sporadic.