Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-11-18 16:51:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-11-18 16:51:51 +0300
commit5c6fd58a79967fbc316b8834593b14dbf43abf83 (patch)
treed0fbf72340ead7fd50efd4a73346b9cb2ba9c4ea /source/blender/blenlib/intern/arithb.c
parent52ab2f52005c3ead4b92ceae7eecccd35c829c60 (diff)
Some improvements brecht suggested, only noticable change is faster multithreading
General optimizations * Precompute 1/x when dividing by x multiple times. * Use float constants like 0.0f instead of 0.0, avoids conversions from float to doubles and back. ProjectPixel * make pixel (and similar pointers elsewhere) a union with a float and unsigned int pointer to reduce the number of casts a little. generally there are a lot of casts going on in the code, makes it hard to read. project_paint_begin() * the perspective case checks with (*projScreenCo)[3] > 0.001) for faces behind the view. - Changed to use the clip start from get_view3d_viewplane * removed arbitrary check for brush size to disable threads. imapaint_paint_sub_stroke_project() * Make clone tool use IMB_blend_color to reduce the code and support blend modes. imapaint_paint_sub_stroke_project_mt() * Make threaded and non threaded mode use same function (just dont start threads when its set to 1) * removed PIL_sleep_ms, was not needed and slowed down threading (my bad!, was copied from bake code).
Diffstat (limited to 'source/blender/blenlib/intern/arithb.c')
0 files changed, 0 insertions, 0 deletions