Skip to content

ScaleMode

Added in 0.1.0

How the picture is filtered when the window is larger than the resolution the game renders at.

Specification
Applies to
client settings
File
SUN.INI
Section
[Video]
Value
string
When omitted
PixelArt

The game renders at ScreenWidth by ScreenHeight and that picture is scaled into the window. This setting chooses how it is filtered on the way, and accepts three names, in any capitalization:

ValueResult
PixelArtSharp pixels whenever the window is larger than the picture
NearestPlain pixel doubling, at the cost of uneven pixel sizes
LinearSmooth, at the cost of blurring the artwork

PixelArt is a compromise between the other two. At an exact multiple — a 640-wide picture in a 1280-wide space — it does what Nearest does, because whole pixels already land on whole pixels. At any other size above the picture it magnifies to the next whole multiple with hard edges and then shrinks that smoothly into the window, which keeps the artwork sharp without the uneven pixel sizes that Nearest alone produces at fractional scales.

The size only matters to PixelArt. A window smaller than the rendering resolution has no whole multiples to preserve, so it falls back to the smooth filtering that Linear uses at every size; Nearest samples the same way whether the picture is being enlarged or reduced.

A name the game does not recognize leaves the setting at the value it already had, which is PixelArt unless a previous save wrote something else.

Set IntegerScaling to confine the picture to whole multiples instead of filling the window.

History

  1. Added0.1.0In development

    Present the game through bgfx instead of DirectDraw