diff options
author | Jeroen Bakker <jeroen@blender.org> | 2019-12-05 16:21:57 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2019-12-06 09:45:07 +0300 |
commit | 15abc9fe743e09f2ec7ef3a6bcfb8f4954bcf28c (patch) | |
tree | 49fc31a16b2e89d0fd67f8756dc164c82098a23c /release | |
parent | 601eafd104ca66e3baaa45e9ecb00989395c55d9 (diff) |
Draw: Removal of MultiSample Buffers
Multisample buffers were used for smooth line drawing. As we now have
an algorithm that doesn't need the multisample buffers we can remove
them.
The user preference for viewport multi_sampling is replaced by single
toggle overlay `use_overlay_smooth_wire`. By default this setting is
enabled as the new drawing is really quick (<1ms) and uses zero hacks.
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D6367
Diffstat (limited to 'release')
-rw-r--r-- | release/datafiles/userdef/userdef_default.c | 3 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/release/datafiles/userdef/userdef_default.c b/release/datafiles/userdef/userdef_default.c index 3856a03b1ba..f6573873dd5 100644 --- a/release/datafiles/userdef/userdef_default.c +++ b/release/datafiles/userdef/userdef_default.c @@ -62,7 +62,7 @@ const UserDef U_default = { USER_HIDE_DOT | USER_SHOW_GIZMO_NAVIGATE | USER_SHOW_VIEWPORTNAME | USER_SHOW_FPS | USER_CONTINUOUS_MOUSE | USER_SAVE_PROMPT), .uiflag2 = USER_REGION_OVERLAP, - .gpu_flag = 0, + .gpu_flag = USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE, .app_flag = 0, .language = 0, .viewzoom = USER_ZOOM_DOLLY, @@ -160,7 +160,6 @@ const UserDef U_default = { NDOF_ROTX_INVERT_AXIS | NDOF_ROTY_INVERT_AXIS | NDOF_ROTZ_INVERT_AXIS | NDOF_PANX_INVERT_AXIS | NDOF_PANY_INVERT_AXIS | NDOF_PANZ_INVERT_AXIS | NDOF_ZOOM_INVERT), - .ogl_multisamples = 0, .image_draw_method = IMAGE_DRAW_METHOD_AUTO, .glalphaclip = 0.004, .autokey_mode = (AUTOKEY_MODE_NORMAL & ~AUTOKEY_ON), diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 387acbec625..e9ccbbabdd3 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -675,8 +675,8 @@ class USERPREF_PT_viewport_quality(PreferencePanel, Panel): flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) flow.prop(system, "viewport_aa") - flow.prop(system, "multi_sample", text="Multisampling") flow.prop(system, "gpencil_multi_sample", text="Grease Pencil Multisampling") + flow.prop(system, "use_overlay_smooth_wire") flow.prop(system, "use_edit_mode_smooth_wire") |