lovr.system.getWindowDensity

Edit

Returns the window pixel density. High DPI windows will usually return 2.0 to indicate that there are 2 pixels for every window coordinate in each axis. On a normal display, 1.0 is returned, indicating that window coordinates match up with pixels 1:1.

density = lovr.system.getWindowDensity()

Arguments

None

Returns

NameTypeDescription
densitynumber The pixel density of the window.

See also