Blender Git Commit Log

Git Commits -> Revision e929cad

Revision e929cad by Clément Foucault (master)
December 7, 2018, 04:33 (GMT)
DRW: Rework wireframe overlay implementation

The shader is way simpler and run way faster on lower end hardware
(2x faster on intel HD5000) but did not notice any improvement on AMD Vega.

This also adds a few changes to the way the wireframes are drawn:
- the slider is more linearly progressive.
- optimize display shows all wires and progressively decrease "inner" wires
intensity. This is subject to change in the future.
- text/surface/metaballs support is pretty rough. More work needs to be done.

This remove the optimization introduced in f1975a46390a5bf85bb7012375f9bc1e761fc516.
This also removes the GPU side "sharpness" calculation which means that
animated meshes with wireframe display will update slower.
The CPU sharpness calculation has still room for optimization. Also
it is not excluded that GPU calculation can be added back as a
separate preprocessing pass (saving the computation result [compute or
feedback]).

The goal here was to have more speed for static objects and remove
the dependency of having buffer textures with triangle count. This is
preparation work for multithreading the whole DRW manager.

Commit Details:

Full Hash: e929cad7067875bb2f1815a01daae32e441f99b7
Parent Commit: 9f5a27c
Lines Changed: +307, -658

12 Modified Paths:

/source/blender/draw/intern/draw_cache.c (+19, -35) (Diff)
/source/blender/draw/intern/draw_cache.h (+6, -12) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+4, -8) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+8, -51) (Diff)
/source/blender/draw/intern/draw_cache_impl_displist.c (+60, -26) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+79, -106) (Diff)
/source/blender/draw/intern/draw_cache_impl_metaball.c (+10, -56) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+1, -1) (Diff)
/source/blender/draw/modes/overlay_mode.c (+54, -108) (Diff)
/source/blender/draw/modes/shaders/overlay_face_wireframe_frag.glsl (+0, -16) (Diff)
/source/blender/draw/modes/shaders/overlay_face_wireframe_geom.glsl (+22, -95) (Diff)
/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl (+44, -144) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021