Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7033)

Issue 5558058: Skip subsurf normal allocation/calculation when not needed (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by nicholasbishop
Modified:
12 years, 1 month ago
Reviewers:
brechtvl, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

CCGSubsurf has already a function to disable calculation of normals, but seems it wasn't used. This patch changes subsurf UV and subsurf_calculate_limit_positions() to not calculate normals, and also not allocate space for them. Should be no functional changes, just a small speedup/less memory use during subdivision for these cases.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -11 lines) Patch
source/blender/blenkernel/intern/subsurf_ccg.c View 8 chunks +15 lines, -11 lines 0 comments Download

Messages

Total messages: 3
nicholasbishop
12 years, 3 months ago (2012-01-20 04:07:20 UTC) #1
brechtvl
LGTM.
12 years, 3 months ago (2012-01-20 17:59:43 UTC) #2
nicholasbishop
12 years, 3 months ago (2012-01-20 19:27:34 UTC) #3
On 2012/01/20 17:59:43, brechtvl wrote:
> LGTM.

Thanks, committed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b