I was trying to add this to the wxWiki, but my edits keep getting flagged as spam (new wiki account). If someone could add this to the wiki page for me (below section titled "Animation Flicker"), that would be swell.
https://wiki.wxwidgets.org/WxGLCanvas
**code removed**
*Edit: was able to update the wiki page now, removed the code sample copy here in case the sample is enhanced in the future on the wiki page.