diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-12-05 16:12:55 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-12-05 16:12:55 +0300 |
commit | ad608f30e019b0184ec626942a42ceba4e2e6487 (patch) | |
tree | 98d5928856c0da94896823f1562700038afdb0f6 /source/blender/freestyle/intern/application | |
parent | 79547351fe4fff330ec5a483eb57ec32ed7ff7f9 (diff) |
Made a change as to when the view map data structure is released,
with the aim of less memory consumption in stroke rendering.
Diffstat (limited to 'source/blender/freestyle/intern/application')
-rwxr-xr-x | source/blender/freestyle/intern/application/Controller.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index bcb902817bf..ad9db9422ba 100755 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -703,6 +703,7 @@ void Controller::DrawStrokes() cout << "Strokes generation : " << d << endl; cout << "Stroke count : " << _Canvas->stroke_count << endl; resetModified(); + DeleteViewMap(); } void Controller::ResetRenderCount() @@ -711,10 +712,12 @@ void Controller::ResetRenderCount() } Render* Controller::RenderStrokes(Render *re) { + _Chrono.start(); BlenderStrokeRenderer* blenderRenderer = new BlenderStrokeRenderer(re, ++_render_count); _Canvas->Render( blenderRenderer ); - DeleteViewMap(); Render* freestyle_render = blenderRenderer->RenderScene(re); + real d = _Chrono.stop(); + cout << "Stroke rendering : " << d << endl; delete blenderRenderer; return freestyle_render; |