7bc1f1285e
This moves us to always rendering to an off-screen texture, and then (at idle) blitting this to the screen & swapping buffers. Ideally we should never see any rendering, or flicker again with this approach. Several fixes are included: + avoid multiple OpenGL contexts being created for the same window, created excessive flicker problems. + de-virtualize UseContext - which context we use is less critical. + kill 'mbOffscreen' distinction - all VCL rendering is offscreen. + implement 'doFlush' and high priority idle flushing. + bind stencil buffer for clipping vs. textures - fixing complex clopping when rendering to virtual-devices, and off-screen. + document environment. variables. + use white as default background glClear color, but red or random color for DBGUTIL. Change-Id: I6be08595b6c8deb7e6db0dbd81308b2c97d2b4ff
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
Environment variables in VCL:
|
|
|
|
General
|
|
-------
|
|
SAL_USE_VCLPLUGIN - use a VCL plugin
|
|
SAL_NO_NWF - disable native widgets
|
|
SAL_FORCEDPI - force a specific DPI (gtk & gtk3 plugins only)
|
|
SAL_FORCE_HC - force high-contrast mode
|
|
|
|
VCL_DOUBLEBUFFERING_AVOID_PAINT - don't paint the buffer, useful to see where we do direct painting
|
|
VCL_DOUBLEBUFFERING_FORCE_ENABLE - enable double buffered painting
|
|
VCL_DOUBLEBUFFERING_ENABLE - enable a safe subset of double buffered painting (currently in Writer, not in any other applications)
|
|
|
|
VCL_HIDE_WINDOWS - don't draw windows
|
|
|
|
Bitmap
|
|
------
|
|
VCL_NO_THREAD_SCALE - disable threaded bitmap scale
|
|
EMF_PLUS_DISABLE - use EMF rendering and ignore EMF+ specifics
|
|
|
|
OpenGL
|
|
------
|
|
SAL_FORCEGL - force enable OpenGL
|
|
SAL_GL_NO_SWAP - disable buffer swapping if set (should show nothing)
|
|
SAL_GL_SLEEP_ON_SWAP - sleep for half a second on each swap-buffers.
|
|
SAL_WITHOUT_WIDGET_CACHE - disable LRU caching of native widget texutres
|
|
SAL_DISABLE_GLYPH_CACHING - don't render glyphs through OpenGL textures
|
|
SAL_DISABLE_GL_WATCHDOG - don't start the thread that watches for broken GL drivers
|