SiiNunit
{

# Default entry to be used if there is no better match.

default_setup_entry : _nameless.default
{
	name: "Default"
	weight: 0
	config: _nameless.config.default
}

# Memory size based defaults for unknown hardware.
# The minimal memory check will also override any card-specific
# setting if too small memory is reported.

default_setup_entry : _nameless.unknown.low.memory
{
	name: "Generic <200MB"
	weight: 1000
	config: _nameless.config.minimum

	memory_max: 200
}

default_setup_entry : _nameless.unknown.medium.memory
{
	name: "Generic <300MB"
	weight: 10
	config: _nameless.config.deferred.lower

	memory_min: 201
	memory_max: 300
}

default_setup_entry : _nameless.unknown.high.memory
{
	name: "Generic >300MB"
	weight: 10
	config: _nameless.config.deferred.medium

	memory_min: 301
}

# Hand tunned configs - NVIDIA

default_setup_entry : _nameless.NVIDIA.GeForce.GT.220
{
	weight: 120
	name: "NVIDIA GeForce GT 220 0x0A20"

	vendor_id: 0x10DE
	device_id: 0x0A20

	config: _nameless.config.nv.gt.220
}

default_setup_entry : _nameless.NVIDIA.GeForce.GT.7600
{
	weight: 120
	name: "NVIDIA GeForce 7600 GT 0x0391"

	vendor_id: 0x10DE
	device_id: 0x0391

	config: _nameless.config.nv.gt.7600
}

default_setup_entry : _nameless.NVIDIA.GeForce.GS.8400
{
	weight: 120
	name: "NVIDIA GeForce 8400 GS 0x0422"

	vendor_id: 0x10DE
	device_id: 0x0422

	config: _nameless.config.nv.gs.8400
}

default_setup_entry : _nameless.NVIDIA.GeForce.GTX.460
{
	weight: 120
	name: "NVIDIA GeForce GTX 460 0x0E22"

	vendor_id: 0x10DE
	device_id: 0x0E22

	config: _nameless.config.nv.gtx.460
}

# Hand tunned configs - ATI

default_setup_entry : _nameless.ATI.Radeon.HD.4550
{
	weight: 120
	name: "ATI Radeon HD 4550 0x954F"

	vendor_id: 0x1002
	device_id: 0x954F

	config: _nameless.config.ati.hd.4550
}

# Aliases - NVIDIA

default_setup_entry : _nameless.NVIDIA.GeForce.GT.220.2
{
	weight: 100
	name: "NVIDIA GeForce GT 220 0x0CA5"

	vendor_id: 0x10DE
	device_id: 0x0CA5

	config: _nameless.config.nv.gt.220
}

default_setup_entry : _nameless.NVIDIA.GeForce.GT.220.3
{
	weight: 100
	name: "NVIDIA GeForce GT 220 0x0CAC"

	vendor_id: 0x10DE
	device_id: 0x0CAC

	config: _nameless.config.nv.gt.220
}

default_setup_entry : _nameless.NVIDIA.GeForce.GT.7600.2
{
	weight: 100
	name: "NVIDIA GeForce 7600 GT 0x02E0"

	vendor_id: 0x10DE
	device_id: 0x02E0

	config: _nameless.config.nv.gt.7600
}

default_setup_entry : _nameless.NVIDIA.GeForce.GS.8400.2
{
	weight: 100
	name: "NVIDIA GeForce 8400 GS 0x0404"

	vendor_id: 0x10DE
	device_id: 0x0404

	config: _nameless.config.nv.gs.8400
}

default_setup_entry : _nameless.NVIDIA.GeForce.GS.8400.3
{
	weight: 100
	name: "NVIDIA GeForce 8400 GS 0x0424"

	vendor_id: 0x10DE
	device_id: 0x0424

	config: _nameless.config.nv.gs.8400
}

default_setup_entry : _nameless.NVIDIA.GeForce.GS.8400.4
{
	weight: 100
	name: "NVIDIA GeForce 8400 GS 0x06E4"

	vendor_id: 0x10DE
	device_id: 0x06E4

	config: _nameless.config.nv.gs.8400
}

default_setup_entry : _nameless.NVIDIA.GeForce.GS.8400.5
{
	weight: 100
	name: "NVIDIA GeForce 8400 GS 0x10C3"

	vendor_id: 0x10DE
	device_id: 0x10C3

	config: _nameless.config.nv.gs.8400
}

default_setup_entry : _nameless.NVIDIA.GeForce.GTX.460.2
{
	weight: 100
	name: "NVIDIA GeForce GTX 460 0x0E24"

	vendor_id: 0x10DE
	device_id: 0x0E24

	config: _nameless.config.nv.gtx.460
}

# Aliases ATI

default_setup_entry : _nameless.ATI.Radeon.HD.4550.2
{
	weight: 100
	name: "ATI Radeon HD 4550 0x9555"

	vendor_id: 0x1002
	device_id: 0x9555

	config: _nameless.config.ati.hd.4550
}

default_setup_entry : _nameless.ATI.Radeon.HD.4550.3
{
	weight: 100
	name: "ATI Radeon HD 4550 0x9540"

	vendor_id: 0x1002
	device_id: 0x9540

	config: _nameless.config.ati.hd.4550
}

# Generated stuf.

@include "default_gfx_setup_gen_nv.sui"
@include "default_gfx_setup_gen_ati.sui"

# Defined configurations - special

default_setup_config : _nameless.config.default
{
	deferred: true
	deferred_mirrors: true

	mlaa: false
	ssao_quality: 1
	shadows_quality: 2 # Dithered single sample

	anisotropy: 0.2
	texture_quality: 1 # Medium
	vegetation_detail: 1 # Medium
	grass_detail: 1 # Medium
	reflection: 1 # Water only
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 1 # Envmap only, configuration fields are ignored

	optimal_x: nil
	optimal_y: nil
	can_supersample: false
}

default_setup_config : _nameless.config.minimum
{
	deferred: true
	deferred_mirrors: false

	mlaa: false
	ssao_quality: 0
	shadows_quality: 0

	anisotropy: 0.0
	texture_quality: 2
	vegetation_detail: 0
	grass_detail: 0
	reflection: 0
	pedestrian: false
	traffic: true

	depth_of_field: false
	color_correction: false
	sunshafts: false

	traffic_headlights: false
	vehicle_flare_lights: false
	light_distance_factor: 0.0
	light_span_factor: 0.0

	rain_reflection_type: 0
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 960
	optimal_y: 540
	can_supersample: false
}

default_setup_config : _nameless.config.deferred.lower
{
	deferred: true
	deferred_mirrors: true

	mlaa: false
	ssao_quality: 0
	shadows_quality: 2

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 1
	grass_detail: 1
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: false
	color_correction: true
	sunshafts: false

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 1 # Envmap only, configuration fields are ignored

	optimal_x: 1240
	optimal_y: 800
	can_supersample: false
}

default_setup_config : _nameless.config.deferred.medium
{
	deferred: true
	deferred_mirrors: true

	mlaa: false
	ssao_quality: 1
	shadows_quality: 2

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 2
	grass_detail: 2
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 1 # Envmap only
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 1600
	optimal_y: 900
	can_supersample: false
}

# Defined configurations - tunned, ordered approximatelly from better to worst

default_setup_config : _nameless.config.nv.gtx.460 # TODO: Check performance on the HW
{
	# Komat - home
	#
	# The GTX 295 has similiar performance.

	deferred: true
	deferred_mirrors: true
	mirror_view_distance: 160.0

	mlaa: true
	ssao_quality: 2
	shadows_quality: 5

	anisotropy: 1.0
	texture_quality: 0
	vegetation_detail: 2
	grass_detail: 2
	reflection: 3
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 3 # Plane + envmap
	rain_reflect_cache: true
	rain_reflect_traffic: true
	rain_reflect_actor: true
	rain_reflect_hookups: true

	optimal_x: nil
	optimal_y: nil
	can_supersample: false
}

default_setup_config : _nameless.config.nv.gtx.285 # TODO: Check performance on the HW
{
	# Milan

	deferred: true
	deferred_mirrors: true
	mirror_view_distance: 160.0

	mlaa: true
	ssao_quality: 2
	shadows_quality: 5

	anisotropy: 1.0
	texture_quality: 0
	vegetation_detail: 2
	grass_detail: 2
	reflection: 3
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 3 # Plane + envmap
	rain_reflect_cache: true
	rain_reflect_traffic: true
	rain_reflect_actor: true
	rain_reflect_hookups: true

	optimal_x: nil
	optimal_y: nil
	can_supersample: false
}

default_setup_config : _nameless.config.nv.gtx.250 # TODO: Check performance on the HW
{
	# Jirka

	deferred: true
	deferred_mirrors: true
	mirror_view_distance: 160.0

	mlaa: true
	ssao_quality: 2
	shadows_quality: 5

	anisotropy: 1.0
	texture_quality: 0
	vegetation_detail: 2
	grass_detail: 2
	reflection: 3
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 3 # Plane + envmap
	rain_reflect_cache: true
	rain_reflect_traffic: true
	rain_reflect_actor: true
	rain_reflect_hookups: true

	optimal_x: nil
	optimal_y: nil
	can_supersample: false
}

default_setup_config : _nameless.config.ati.hd.4850 # TODO: Check performance on the HW
{
	# Pavel

	deferred: true
	deferred_mirrors: true
	mirror_view_distance: 160.0

	mlaa: true
	ssao_quality: 2
	shadows_quality: 5

	anisotropy: 1.0
	texture_quality: 0
	vegetation_detail: 2
	grass_detail: 2
	reflection: 3
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 3 # Plane + envmap
	rain_reflect_cache: true
	rain_reflect_traffic: true
	rain_reflect_actor: true
	rain_reflect_hookups: true

	optimal_x: nil
	optimal_y: nil
	can_supersample: false
}


default_setup_config : _nameless.config.nv.gt.220 # TODO: Check performance on the HW
{
	# Komat - work

	deferred: true
	deferred_mirrors: true

	mlaa: false
	ssao_quality: 1
	shadows_quality: 2

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 2
	grass_detail: 2
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: true
	color_correction: true
	sunshafts: true

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 1 # Envmap only
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 1600
	optimal_y: 900
	can_supersample: false
}

default_setup_config : _nameless.config.nv.gtx.7800 # TODO: Check performance on the HW
{
	# Just guess.

	deferred: true
	deferred_mirrors: true

	mlaa: false
	ssao_quality: 0
	shadows_quality: 0

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 1
	grass_detail: 1
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: false
	color_correction: true
	sunshafts: false

	traffic_headlights: true
	vehicle_flare_lights: true
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 1 # Envmap only
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 1280
	optimal_y: 720
	can_supersample: false
}

default_setup_config : _nameless.config.nv.gt.7600 # TODO: Check performance on the HW
{
	# Ruda - work

	deferred: true
	deferred_mirrors: false

	mlaa: false
	ssao_quality: 0
	shadows_quality: 0

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 1
	grass_detail: 1
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: false
	color_correction: true
	sunshafts: false

	traffic_headlights: true
	vehicle_flare_lights: false
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 0 # Disabled
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 1280
	optimal_y: 720
	can_supersample: false
}

default_setup_config : _nameless.config.ati.hd.4550 # TODO: Check performance on the HW
{
	# Komat - home

	deferred: true
	deferred_mirrors: true

	mlaa: false
	ssao_quality: 0
	shadows_quality: 0

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 1
	grass_detail: 1
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: false
	color_correction: true
	sunshafts: false

	traffic_headlights: true
	vehicle_flare_lights: false
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 1 # Envmap only
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 1280
	optimal_y: 720
	can_supersample: false
}

default_setup_config : _nameless.config.nv.gs.8400 # TODO: Check performance on the HW
{
	# Komat - home

	deferred: true
	deferred_mirrors: false

	mlaa: false
	ssao_quality: 0
	shadows_quality: 0

	anisotropy: 0.2
	texture_quality: 0
	vegetation_detail: 1
	grass_detail: 1
	reflection: 1
	pedestrian: true
	traffic: true

	depth_of_field: false
	color_correction: true
	sunshafts: false

	traffic_headlights: false
	vehicle_flare_lights: false
	light_distance_factor: 1.0
	light_span_factor: 1.0

	rain_reflection_type: 0 # Disabled
	rain_reflect_cache: false
	rain_reflect_traffic: false
	rain_reflect_actor: false
	rain_reflect_hookups: false

	optimal_x: 1024
	optimal_y: 580
	can_supersample: false
}

}
