Blender Git Loki

Git Commits -> Revision e01cadd

Revision e01cadd by Brecht Van Lommel (master)
April 27, 2018, 10:14 (GMT)
WM: new offscreen window draw method to replace all existing methods.

For Blender 2.8 we had to be compatible with very old OpenGL versions, and
triple buffer was designed to work without offscreen rendering, by copying
the the backbuffer to a texture right before swapping. This way we could
avoid redrawing unchanged regions by copying them from this texture on the
next redraws. Triple buffer used to suffer from poor performance and driver
bugs on specific cards, so alternative draw methods remained available.

Now that we require newer OpenGL, we can have just a single draw method
that draw each region into an offscreen buffer, and then draws those to
the screen. This has some advantages:

* Poor 3D view performance when using Region Overlap should be solved now,
since we can also cache overlapping regions in offscreen buffers.
* Page flip, anaglyph and interlace stereo drawing can be a little faster
by avoiding a copy to an intermediate texture.
* The new 3D view drawing already writes to an offscreen buffer, which we
can draw from directly instead of duplicating it to another buffer.
* Eventually we will be able to remove depth and stencil buffers from the
window and save memory, though at the moment there are still some tools
using it so it's not possible yet.
* This also fixes a bug with Eevee sampling not progressing with stereo
drawing in the 3D viewport.

Differential Revision: https://developer.blender.org/D3061

Commit Details:

Full Hash: e01cadd657c76267266546781703df107c55f83a
Parent Commit: 868c9ac
Lines Changed: +703, -1052

38 Modified Paths:

/release/scripts/startup/bl_ui/space_userpref.py (+0, -2) (Diff)
/source/blender/blenkernel/BKE_screen.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/screen.c (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -6) (Diff)
/source/blender/draw/DRW_engine.h (+3, -1) (Diff)
/source/blender/draw/intern/draw_manager.c (+73, -86) (Diff)
/source/blender/editors/include/ED_screen.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_draw.c (+29, -26) (Diff)
/source/blender/editors/interface/interface_region_popup.c (+7, -1) (Diff)
/source/blender/editors/interface/resources.c (+0, -4) (Diff)
/source/blender/editors/screen/area.c (+15, -20) (Diff)
/source/blender/editors/screen/screen_draw.c (+0, -2) (Diff)
/source/blender/editors/screen/screen_edit.c (+1, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+0, -13) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+0, -12) (Diff)
/source/blender/editors/space_view3d/view3d_draw_legacy.c (+0, -2) (Diff)
/source/blender/gpu/GPU_framebuffer.h (+1, -0) (Diff)
/source/blender/gpu/GPU_viewport.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_framebuffer.c (+18, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+0, -2) (Diff)
/source/blender/gpu/intern/gpu_viewport.c (+20, -1) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+4, -9) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -12) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+0, -1) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+0, -3) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+0, -20) (Diff)
/source/blender/windowmanager/intern/wm.c (+0, -1) (Diff)
/source/blender/windowmanager/intern/wm_draw.c (+412, -614) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+0, -6) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+0, -4) (Diff)
/source/blender/windowmanager/intern/wm_stereo.c (+81, -167) (Diff)
/source/blender/windowmanager/intern/wm_subwindow.c (+4, -2) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+0, -12) (Diff)
/source/blender/windowmanager/wm.h (+6, -1) (Diff)
/source/blender/windowmanager/WM_api.h (+6, -3) (Diff)
/source/blender/windowmanager/wm_draw.h (+13, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021