Share via

Facing Latency and low-resolution issues while running Playwright automation scripts in Azure VM

Srividya Kotipalli - EXT 0 Reputation points
2026-02-17T03:51:06.8933333+00:00

Our application: Desktop application built on Electron with React and Three.js

Required resolution: 1920x1200

But we are getting resolution: 1024x768

SESSIONNAME USERNAME ID STATE TYPE DEVICE

services 0 Disc

console test-suite-runner 1 Active

31c5ce94259d4... 65536 Listen

rdp-tcp 65537 Listen

SESSIONNAME:

===== DISPLAY / RESOLUTION =====

Primary Screen Resolution: 1024x768

===== GPU / DRIVER INFO =====

Name : Microsoft Hyper-V Video

DriverVersion : 10.0.20348.1

VideoProcessor :

AdapterCompatibility : Microsoft

Name : Radeon Instinct MI25 MxGPU

DriverVersion : 31.0.21018.20001

VideoProcessor : AMD FirePro SDI (0x686C)

AdapterCompatibility : Advanced Micro Devices, Inc.

===== CHECKING FOR BASIC / REMOTE DISPLAY ADAPTER =====

✔ GPU Driver Active: Microsoft Hyper-V Video, Radeon Instinct MI25 MxGPU

===== DPI / SCALING =====

⚠ DPI not available.

===== DESKTOP COMPOSITOR (DWM) STATUS =====

✔ DWM.exe is running (interactive desktop present).

===== DXDIAG SNAPSHOT =====

dxdiag output saved to: C:\Users\TEST-S~1\AppData\Local\Temp\dxdiag.txt

===== SUMMARY =====

⚠ Resolution is low (likely 1024x768). UI tests may fail.

⚠ Running in Session 0 (service). UI rendering is unstable; no persistent display.

Finishing: 🔍 Environment Diagnostic: Session + GPU + Display

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Chen Tran 8,065 Reputation points Independent Advisor
    2026-02-17T05:10:24.5333333+00:00

    Hello Srividya,

    Thank you for posting question on Microsoft Windows Forum!

    Based on the issue description. Well! Your diagnostic reveals that you are running in Session 0 (Service mode) with Microsoft Hyper-V Video as the active driver. Because Session 0 has no physical or virtual monitor attached, Windows defaults to a "headless" state. A fixed 1024x768 resolution and Software Rendering, which explains both your resolution cap and the Three.js latency.

    The suggestion here to fix this for an Electron/Three.js app is to force an Interactive Session and bypass Session 0 isolation.

    Hope the above information is helpful! If it helps you get more insight into the issue, it is appreciated to accept the answer. Should you have more questions, feel free to leave a message.


  2. Ankit Yadav 12,205 Reputation points Microsoft External Staff Moderator
    2026-02-17T05:08:27.7866667+00:00

    Hello @Srividya Kotipalli - EXT

    Thank you for sharing the detailed analysis of the issue.

    Based on your diagnostics, the issue is clearly caused by this line:

    ⚠ Running in Session 0 (service)
    

    Your Electron application (React + Three.js) requires a real interactive desktop to run at the required resolution of 1920 × 1200. However, because the automation is running in Session 0 (Windows service session), Windows does not provide a true display environment.

    As a result:

    • The resolution is limited to 1024 × 768

    DPI information is unavailable

    GPU acceleration cannot fully bind to a desktop

    UI rendering may be unstable or slower

    Even though your system correctly detects:

    Microsoft Hyper-V Video

    Radeon Instinct MI25 MxGPU

    DWM running

    GPU availability does not override Session 0 limitations. Windows simply does not allow higher resolutions in a service session.

    Playwright viewport settings also cannot fix this, because they only control the browser content area - not the actual Windows desktop resolution that Electron depends on.

    What needs to change

    To run your application at 1920 × 1200, the tests must execute in an interactive user session, not as a Windows service.

    Once running under a logged-in user session:

    Windows will allow the correct resolution

    DPI information will be available

    GPU acceleration will work properly

    UI tests should become stable


  3. Q&A Assist
    2026-02-17T03:51:15.5+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To address the latency and low-resolution issues while running Playwright automation scripts in an Azure VM, consider the following points:

    1. Resolution Settings: The low resolution (1024x768) you are experiencing may be due to the VM's display settings. Ensure that the VM is configured to support higher resolutions, such as 1920x1200. You may need to adjust the display settings in the Azure portal or within the VM itself.
    2. Session Type: Running in Session 0 (service session) can lead to unstable UI rendering. Ensure that your automation scripts are executed in an interactive session rather than a service session to improve rendering stability.
    3. Graphics Driver: The output indicates that you are using the Microsoft Hyper-V Video driver. This may not provide optimal performance for graphical applications. Consider using a VM configuration that supports GPU acceleration, which can enhance rendering performance and resolution.
    4. DPI and Scaling: The warning about DPI not being available suggests that scaling settings might not be configured correctly. Check the scaling settings in your VM to ensure they are set appropriately for your desired resolution.
    5. Network Latency: If your application is hosted outside the Azure region where your VM is located, you may experience increased latency. Optimize regional latency by ensuring that both your application and VM are in the same Azure region.

    By addressing these factors, you should be able to improve both the resolution and performance of your Playwright automation scripts in the Azure VM.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.