Jump to the pages
VMForAI.com

Desktops and virtual machines for computer-use agents: Linux displays, VNC viewing, Windows VMs, screen size and DPI, input, recording and sizing.

Screen resolution, scaling and DPI for screenshot-based computer-use agents

The gist

Pick one screen size per environment, set it on the virtual display and keep it fixed. If screenshots are resized before the model sees them, scale every coordinate back to the real screen. Keep scaling at 100 percent (96 DPI) unless the task needs otherwise.

Words: / Out / Fixed up / 4 min

Screen resolution is the size of the screen in pixels, and for a computer-use agent it sets two things at once: how much detail the model gets in each screenshot, and the coordinate system of every click it sends back. DPI, the dots per inch the system reports, decides how large applications draw text and controls inside that screen. Getting either one wrong shows up as an agent that reads the screen correctly and still clicks the wrong spot.

Why does screen resolution matter for a screenshot-based agent?

Screen resolution matters because the model reads the screen as an image and answers with pixel coordinates in that image. A bigger screen gives more detail but a bigger image to process; a smaller screen gives less detail and less room for windows.

Research results point both ways, which is why you should measure on your own tasks. The OSWorld authors set "The raw resolution of the screen" to 1920x1080 and tested downsampling it. For screenshot-only input they found that "an increase in resolution directly correlates with enhanced performance". With set-of-mark input, a reduction "to 768×432 (down-sampling ratio of 0.4) leads to an improvement", while a 0.2 ratio "results in a noticeable decline in performance" (OSWorld paper, sections 4.1 and 5.2, read 2026-11-26).

How do I scale coordinates when screenshots are resized?

Scale coordinates by the ratio between the real screen and the image the model saw. If a 1920x1080 screen is sent to the model as a smaller image, a click the model places in that image has to be multiplied back up before it is sent to the display.

Worked example (an example, not a recommendation): the screen is 1920x1080 and the harness resizes each screenshot to 1280x720 before sending it.

Table: Example coordinate scaling from a resized screenshot

WidthHeight
Real screen19201080
Image the model saw1280720
Scale factor (real / image)1.51.5
Model's click in the image400300
Click sent to the screen600450

Three rules prevent most misclicks:

  1. Keep the aspect ratio. Resize width and height by the same factor, or padding and stretching will shift every point.
  2. Scale in one place. Do the conversion in the harness, next to the code that sends input, never partly in the prompt.
  3. Round once, at the end. Convert to whole pixels only after scaling, and clamp to the screen edges.

How do I set the screen size on a Linux agent desktop?

Set the screen size when the virtual display starts, and do not let anything change it during a run. On Xvfb the -screen option "creates screen screennum and sets its width, height, and depth" (Xvfb manual, read 2026-11-26):

Xvfb :99 -screen 0 1920x1080x24 -dpi 96 -nolisten tcp &

xrandr "is used to set the size, orientation and/or reflection of the outputs for a screen", and xrandr --query "will display the current state of the system" (xrandr manual, read 2026-11-26). Use the query in your start-up checks. Avoid changing the size in the middle of a run: VNC viewers with remote resizing, or a task that opens display settings, can do it by accident.

What does DPI change on an agent desktop?

DPI changes how many pixels applications use for text and controls. The same dialog at a higher DPI is larger in pixels, so less of the screen fits in one screenshot, and small text becomes easier to read.

  • On Linux (X11), the X server's -dpi option "sets the resolution for all screens, in dots per inch" (Xserver manual, read 2026-11-26). Toolkits and desktop settings can apply their own scaling on top, so check a screenshot rather than trusting the number.
  • On Windows, 96 DPI is the 100 percent baseline. Microsoft's guide says applications that are not DPI-aware "render at a fixed DPI value of 96 (100%)" and on a screen above 96 DPI "Windows will stretch the application bitmap", which "results in the application appearing blurry" (High DPI desktop application development on Windows, read 2026-11-26).

Blurry, stretched controls are harder for a model to read, which is a reason to keep Windows agent desktops at 100 percent scaling unless the task is about scaling.

Why can coordinates differ between the screenshot and the input tool on Windows?

Coordinates can differ because Windows may report sizes to an application in scaled units. Microsoft's guide warns that "if a DPI-unaware thread queries the screen size while running on a high-DPI display, Windows will virtualize the answer given to the application as if the screen were in 96 DPI units" (High DPI guide, read 2026-11-26). If the screenshot tool and the input tool run with different DPI awareness, they can disagree about where a point is. At 100 percent scaling both see the same numbers.

What should I record about the screen for every run?

Record the screen settings with every run so results can be repeated and misclicks can be explained:

  1. The real screen width, height and depth.
  2. The size of the image sent to the model, and the scale factor.
  3. The DPI or scaling setting of the desktop.
  4. Whether the pointer is drawn in screenshots.

These four values belong in the run log next to the model name and the step limit.

What we read for this article

Asked

What screen resolution should a computer-use agent use?

There is no single right answer, but it must be fixed and recorded. OSWorld, a widely used desktop benchmark, sets the raw screen to 1920x1080. Smaller screens give the model fewer pixels to read; larger ones may be downscaled by the agent framework anyway.

Why does my agent click in the wrong place?

Most often because the screenshot the model saw was resized and the coordinates were not scaled back, or because the screen size changed between the screenshot and the click. Log the screenshot size and the screen size with every action.

Does a lower screenshot resolution hurt agents?

Often. The OSWorld authors found that for screenshot-only input, higher resolution went with better performance. With their set-of-mark input, a 0.4 downsampling ratio helped and 0.2 hurt, so test on your own tasks.

What DPI should an agent desktop use?

96 DPI, the Windows 100 percent baseline, is the safe default. Higher DPI makes text and controls larger in pixels, so fewer fit on screen, and applications that are not DPI-aware may be stretched and look blurry.