| | 143 | /** Hint to tell the renderingTraversals() method whether to call relaseContext() on the last |
| | 144 | * context that was made current by the thread calling renderingTraverals(). Note, when |
| | 145 | * running multi-threaded viewer no threads will be made current or release current. |
| | 146 | * Setting this hint to false can enable the frame loop to be lazy about calling makeCurrent |
| | 147 | * and releaseContext on each new frame, helping performance. However, if you frame loop |
| | 148 | * is managing multiple graphics context all from the main frame thread then this hint must |
| | 149 | * be left on, otherwise the wrong context could be left active, introducing errors in rendering.*/ |
| | 150 | void setReleaseContextAtEndOfFrameHint(bool hint) { _releaseContextAtEndOfFrameHint = hint; } |
| | 151 | |
| | 152 | /** Hint to tell the renderingTraversals() method whether to call relaseContext().*/ |
| | 153 | bool getReleaseContextAtEndOfFrameHint() const { return _releaseContextAtEndOfFrameHint; } |
| | 154 | |