Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/session.cpp
| Show First 20 Lines • Show All 652 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| /* TODO(sergey): Consider moving this to the Scene level. */ | /* TODO(sergey): Consider moving this to the Scene level. */ | ||||
| DeviceRequestedFeatures requested_features; | DeviceRequestedFeatures requested_features; | ||||
| requested_features.experimental = params.experimental; | requested_features.experimental = params.experimental; | ||||
| scene->shader_manager->get_requested_features( | scene->shader_manager->get_requested_features( | ||||
| scene, | scene, | ||||
| &requested_features); | &requested_features); | ||||
| if(!params.background) { | |||||
| /* Avoid too much re-compilations for viewport render. */ | |||||
| requested_features.max_nodes_group = NODE_GROUP_LEVEL_MAX; | |||||
| requested_features.nodes_features = NODE_FEATURE_ALL; | |||||
| } | |||||
| /* This features are not being tweaked as often as shaders, | /* This features are not being tweaked as often as shaders, | ||||
| * so could be done selective magic for the viewport as well. | * so could be done selective magic for the viewport as well. | ||||
| */ | */ | ||||
| bool use_motion = scene->need_motion() == Scene::MotionType::MOTION_BLUR; | bool use_motion = scene->need_motion() == Scene::MotionType::MOTION_BLUR; | ||||
| requested_features.use_hair = false; | requested_features.use_hair = false; | ||||
| requested_features.use_object_motion = false; | requested_features.use_object_motion = false; | ||||
| requested_features.use_camera_motion = use_motion && scene->camera->use_motion(); | requested_features.use_camera_motion = use_motion && scene->camera->use_motion(); | ||||
| ▲ Show 20 Lines • Show All 445 Lines • Show Last 20 Lines | |||||