Resolution of the dynamic screen as ratio of the real screen resolution.

  • At 1.0, the default, the virtual screen is not used and the visuals are drawn directly to the real screen and pixels.
  • When below 1.0, there is less pixels in the dynamic screen than in the real screen. This reduces the strain on the GPU, especially of high resolution displays.
  • Values above 1.0 are not supported at this point, but they would allow super-sampling.

This value must be set either by the user using a video quality slider or by an heuristic according to the device capabilities. A lower value should use less battery power on mobile devices.

This value is applied to both X and Y, so it has an exponential effect on the number of pixels.

Property definitions

gamnit :: dynamic_resolution $ App :: dynamic_resolution_ratio=
	# Resolution of the dynamic screen as ratio of the real screen resolution.
	#
	# - At 1.0, the default, the virtual screen is not used and the visuals are
	#   drawn directly to the real screen and pixels.
	# - When below 1.0, there is less pixels in the dynamic screen than in the
	#   real screen. This reduces the strain on the GPU, especially of high
	#   resolution displays.
	# - Values above 1.0 are not supported at this point, but they would allow
	#   super-sampling.
	#
	# This value must be set either by the user using a video quality slider or
	# by an heuristic according to the device capabilities.
	# A lower value should use less battery power on mobile devices.
	#
	# This value is applied to both X and Y, so it has an exponential effect on
	# the number of pixels.
	var dynamic_resolution_ratio = 1.0 is writable
lib/gamnit/dynamic_resolution.nit:29,2--45,47