public override void PaintToOutputWindow() { if (!isInitGLControl) { return; } //var innumber = dbugCount; //dbugCount++; //Console.WriteLine(">" + innumber); #if DEBUG //dbugStopWatch.Reset(); //dbugStopWatch.Start(); #endif windowControl.MakeCurrent(); this.openGLViewport.PaintMe(); windowControl.SwapBuffers(); #if DEBUG //dbugStopWatch.Stop(); //long millisec_per_frame = dbugStopWatch.ElapsedMilliseconds; //int fps = (int)(1000.0f / millisec_per_frame); //System.Diagnostics.Debug.WriteLine(fps); #endif //Console.WriteLine("<" + innumber); }
public override void PaintToOutputWindow() { if (!_isInitGLControl) { return; } _windowControl.MakeCurrent(); _openGLViewport.PaintMe(); _windowControl.SwapBuffers(); //Console.WriteLine("<" + innumber); }
public override void PaintToOutputWindow() { if (!isInitGLControl) { return; } //var innumber = dbugCount; //dbugCount++; //Console.WriteLine(">" + innumber); windowControl.MakeCurrent(); this.openGLViewport.PaintMe(); windowControl.SwapBuffers(); //Console.WriteLine("<" + innumber); }
//#endif public override void PaintToOutputWindow() { if (!_isInitGLControl) { return; } //#if DEBUG _stopWatch.Reset(); _stopWatch.Start(); //#endif _windowControl.MakeCurrent(); _openGLViewport.PaintMe(); _windowControl.SwapBuffers(); // _stopWatch.Stop(); #if DEBUG long millisec_per_frame = _stopWatch.ElapsedMilliseconds; int fps = (int)(1000.0f / millisec_per_frame); System.Diagnostics.Debug.WriteLine("fps:" + fps); #endif }