Frequently asked questions (FAQ) about integer scaling
- Marat Tanalin
- Updated:
Is this just for pixel art, emulators and old games?
No, that’s a myth and a delusion. A crucially important use case of integer scaling is playing modern 3D games at the Full HD (1920×1080) resolution on a 4K display with no unreasonable quality loss compared with a Full HD display of the same size. In near future — scaling QHD (3x) and 4K (2x) to 8K.
A lower-than-native resolution may be used for the purpose of increasing performance in games (especially on laptops) or in games that work incorrectly at the native screen resolution, and also for running HiDPI-incompatible software that has graphical or functional issues with DPI scaling in Windows.
Also, integer scaling is useful for preventing quality loss when watching videos.
Is this the same as “Nearest Neighbour”?
Only partly.
The results of using the “Nearest Neighbour” algorithm
and integer scaling are only identical at integer scales —
e. g. 2 or 3.
-
At fractional scales
(e. g.
4.5when scaling 640×480 to 4K), “Nearest Neighbour” results in image distortion and so called pixel shimmering. This is due to different sizes of pixels in the same image: for example, at 150% scale, some pixels are 1×1, while others are 2×2, 2×1, and 1×2. -
With integer scaling, the scale is always integer
(e. g. exactly
4in the 640×480→4K case) — regardless of the native-to-logical resolution ratio. The space that might be left empty due to nondivisibility of the resolutions is filled with black like in the “Center” mode without scaling.
Is this about disabling antialiasing?
No. Blur has nothing to do with antialiasing.
Antialiasing is applied during rendering a 3D scene, while blur is added during upscaling an already rendered image as an array of pixels.
Integer scaling can (and should) be used together with antialiasing. You enable antialiasing in the game, disable upscaling blur in display or graphics-driver settings, and get a Full HD image on a 4K monitor with the same quality as on a monitor with the native Full HD resolution.
Wouldn’t pixels be noticeable without blur?
This is not always so, and not necessarily bad when so.
- Noticeability of pixels depends on the combination of the native display resolution, the original-image resolution, the distance to the screen, and the quality of antialiasing in the game. For example, at the Full HD resolution on a 24″ 4K monitor at a typical distance of 50-60 cm from the screen with quality antialiasing in the game, logical pixels are almost indistinguishable, so blur just unreasonably decreases sharpness. With low-quality or disabled antialiasing, pixels are noticeable regardless of whether the scaling is blurry. The author of this text plays games at Full HD with IntegerScaler and watches Full HD videos with MPC-HC on the 24″ 4K monitor Dell P2415Q on a regular basis. Now imagine integer scaling of QHD or 4K to 8K, or 8K to 16K under the same conditions. The pixel density corresponding to 8K at 27″ is already real in 13.3″ 4K panels for laptops, which are also used in portable monitors.
- Whether noticeable pixelation is appropriate depends on the type of the original image: e. g. for pixel art, pixelation is an intended effect, so blur distorts the author’s intent.
But I like blur!
No problem. Integer scaling is meant to be a feature that can be enabled or disabled depending on the user’s preference or use cases. If you do like blur, you can just not enable integer scaling in the settings of the graphics driver or the display.
Why use 4K monitor if use it at Full HD anyway? Doesn’t this defeat the purpose of high native resolution?
-
Computers and monitors have multiple use-cases. In many of them, the 4K resolution gives an advantage while performance is not an issue:
- comfort when doing text-related work of any type (web surfing, text editors, programming, web development), working with drawings and charts is uncomparably higher on a 4K monitor than on a FHD monitor, thanks to the increased detail, invisible interpixel grid, and greatly decreased “sparkling” flickering caused by sequential flickering of subpixels due to crystal inversion specific to the LCD technology;
- a higher native resolution allows to view photos at higher quality;
- a higher native resolution theoretically allows to increase color depth (bit depth) with no flickering — by displaying average colors via adjacent pixels displaying slightly different colors (dithering).
- Even if the computer is fast enough for running games at the 4K resolution, not all games work correctly at this resolution: e. g. user-interface controls in “Cities XL Platinum” get too small; and in “Bionic Commando Rearmed”, conundrum elements are invisible in “Hack enemy network” sublevels.
-
The higher the native resolution is, the fuller the screen may be used with integer scaling.
For example, when scaling 320×240 to Full HD,
1/9 (11%) of the screen height is lost (filled with black) (
1080/240 = 4,5), while on a 4K display, the scale is exactly9, so the image occupies the entire height of the screen. On 8K displays, the same will apply to the 640×480 resolution; it will also be possible to use any of the typical resolutions with no loss of quality or screen space: 4K (3840×2160, 2x), QHD (2560×1440, 3x), FHD (1920×1080, 4x), HD (1280×720, 6x).
Does FHD on 4K monitor with integer scaling look like on FHD monitor?
Yes. Moreover, games and videos at FHD with integer scaling on a 4K monitor look even better than on a monitor with native FHD resolution:
- interpixel grid is invisible;
- crystal-inversion flickering is almost unnoticeable.
The only special case is subpixel text antialiasing such as ClearType in Windows that only works at native resolution because it relies on a specific subpixel layout:
Can it make 1440p look better on 4K monitor?
No. Integer scaling is not a magic wand that improves quality of any image. It’s based on a simple mathematical principle that makes it possible when enlarging an image by an integer number of times, just to duplicate the original pixel with no need for mixing-in colors of surrounding pixels, thus preventing blur. To use integer scaling at QHD (2560×1440), you need a 5K (5120×2880) or 8K (7680×4320) display:
5120 / 2560 = 2880 / 1440 = 2.0
7680 / 2560 = 4320 / 1440 = 3.0
With a 4K (3840×2160) display, the maximum logical resolution for integer scaling to work is Full HD (1920×1080):
3840 / 1920 = 2160 / 1080 = 2.0
At QHD on a 4K monitor, the native/
3840 / 2560 = 2160 / 1440 = 1.5
1.5×1.5 groups of physical pixels are physically impossible. The maximum integer scale is 1.0 which is equivalent to the regular centered mode at 100% scale with thick black bars around the image.
The same applies to scaling HD (1280×720) to Full HD (1920×1080). For integer scaling of 1280×720, the display resolution must be at least 2560×1440 (200% scale, 2×2 pixels).
Does integer scaling improve performance?
No. Integer scaling just prevents blur. What improves performance is using a lower resolution — regardless of whether there is blur. Both regular scaling with blur and integer scaling with no blur do not affect performance.
But thanks to its computational simplicity, integer scaling may decrease input lag compared with scaling algorithms that calculate average colors of pixels and result.
What is better: lower resolution with no blur or higher resolution with blur?
At a lower resolution upscaled with no blur (e. g. FHD→4K), the image is sharper. At a higher resolution upscaled with blur (e. g. QHD→4K), the image is more detailed, though blurry to some extent because logical pixels are not aligned with physical pixels.
Integer scaling allows to prevent unreasonable blur when the scale is integer. But if the computer performance is enough for using a higher resolution and the game works correctly at that resolution, it may make sense to use the higher resolution, especially if the game has low-quality antialiasing.
Isn’t this built into OpenGL and DirectX?
In the 3D-rendering APIs like OpenGL (the GL_NEAREST mode)
and DirectX (D3DTEXF_POINT in Direct3D 9),
the “Nearest Neighbour” algorithm is indeed available,
but intended for scaling textures.
While developers of a specific game can indirectly utilize this feature for implementing integer scaling in that specific game, scaling textures is not directly related to universal full-screen scaling transparent to operating system and software.
Should this be handled by display or graphics card?
Support for integer scaling by the GPU (graphics card) does not contradict with support by the display, and vice versa.
- Even if new displays start supporting integer scaling, this won’t help owners of existing displays, while scaling via graphics card will.
-
Scaling via graphics card is not available
if the video-signal source is not a computer,
but e. g. a game console
(Nintendo Switch, Play
Station 3/4, MiSTer FPGA, Super Nt, Mega Sg, SNES Mini) or a hardware video player. -
When scaling via GPU (graphics card), the display always receives the signal at the display’s native resolution. So all the limitations compared with display scaling apply, including a potentially lower refresh rate or lower color (bit) depth.
For example, when connecting via HDMI 1.x, the maximum refresh rate at the 4K resolution is 30 Hz, while at Full HD it’s 120 Hz. When scaling via GPU, the refresh rate would be limited to the same 30 Hz like at true 4K, even if the logical resolution before scaling is Full HD.
- In case of nVidia GPUs, integer scaling is only available for modern graphics cards starting with the Turing generation (2019) (RTX and GTX 16*) and only under Windows 10 and newer.
- Specifically the implementation of integer scaling in the nVidia graphics driver had multiple serious limitations, including incompatibility with DSC compression (at least until the RTX 5000 series), HDR, custom resolutions, 4:2:0 chroma subsampling, tiled mode (used in Dell UP3218K 8K monitor).
- AMD stopped releasing graphics drivers for Windows 7, so integer scaling via GPU will not be available in Windows 7 with GPUs released after that. The display’s own scaling works regardless of the GPU model and the versions of the operating system and the graphics driver.
- GPU scaling reportedly increases input lag.
- GPU scaling does not work during computer boot and in BIOS (CMOS Setup).
- Transmitting more data from the graphics card to display takes more time and may increase input lag. Also, signal stability may suffer, e. g. that the screen may periodically get black for a moment (blanking), or the image may have artifacts. So the display’s own scaling is preferable.
Shouldn’t this be handled by operating system?
Windows doesn’t have access to screen contents in true (exclusive) full-screen mode. To make it possible to implement full-screen scaling on Windows’ level, the Windows’ display-driver model (WDDM) would need to be fundamentally changed, and even in that case an extra lag would be possible compared with scaling via graphics-driver’s or monitor’s own means.
Isn’t DLSS/FSR better?
The DLSS upscaling method is not a universal solution:
- available only on modern GPUs;
- requires individual support by each specific game. Absolute majority of games don’t support DLSS. Integer scaling works with any game;
- may introduce unpredictable image artifacts. Integer scaling upscales the image as is, without altering it in any way;
- it’s based on machine learning and computationally-intensive. The computational power needed for integer scaling is close to zero;
- intended for 3D games and not applicable to games of other types — e. g. based on pixel art. Integer scaling is applicable to any image;
- unavailable if the signal source is not a computer, but e. g. a game console or a hardware video player.
How is this different from sharpening?
Integer scaling has nothing to do with sharpening. Integer scaling prevents quality loss caused by blur, while sharpening tries to improve legibility of an already blurry image.
How is this different from DSR/VSR?
DSR/VSR and integer scaling resize image in different directions, in different ways, and for different purposes.
- When using DSR/VSR, the image is rendered at a resolution higher than the native display resolution, then downscaled to the display resolution. This is effectively just SuperSampling antialiasing (SSAA) that can be used in games which don’t have built-in support for this type of antialiasing or any antialiasing at all.
- When using integer scaling, the image is rendered at a resolution lower than the native display resolution, then upscaled (stretched) with no blur to the resolution lower than or equal to the display resolution while using a highest possible integer scale.
The only thing that DSR/VSR and integer scaling have in common is the universal resolution virtualization transparent to operating system and software and compatible with all full-screen applications.
How is this different from resolution scaling?
The “Resolution Scaling” feature available in some games is intended for scaling by the game itself.
Unlike using a resolution from a predefined set of resolutions, the feature allows to precisely find an optimal combination of detail and performance: e. g. if at the 2560×1440 resolution, performance is not enough, while at 1920×1080 it’s too high, it’s possible to choose 2560×1440 in the game and use resolution scaling for decreasing the resolution e. g. to 2400×1350.
In the majority of games, this feature adds blur even when lowering the resolution an integer number of times.
Integer scaling is free of blur, and a proper implementation should be compatible with all full-screen applications.
How is this different from checkerboard rendering?
Like using a lower resolution, checkerboard rendering allows to increase performance.
But checkerboard rendering has nothing to do with scaling: a 3D scene is rendered in half resolution by rendering pixels checkerwise, then colors of missing pixels are calculated by averaging colors of adjacent rendered pixels and/or based on pixels from the previous frame.
Such approach is similar to interlacing typically used in TV broadcasting for video encoding, and allows games to achieve quality close to rendering at full resolution (e. g. 4K), but with almost double performance.
With integer scaling, all image pixels are rendered, then the image is upscaled without altering it in any way and calculating any average colors.
See also the article about integer scaling.