[BUG] New ViewPort size increases by (2x8) every time you press play

The New Editor Window (PIE) ViewPort size increases by (2x8) every time you press play, NOT just the first time.

To replicate:

  1. Go to Editor Preferences → Game ViewPort Settings → New ViewPort Resolution
  2. Note the ViewPort width and height
  3. Press Play → New Editor Window (PIE)
  4. Close the PIE window
  5. Repeat Step 1 & 2

Repeat this as many times as you want it will increase by (2x8) every time.

3 Likes

Hello,

We’ve made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

Thanks

This is still an issue in UE 5.0.

Update: I’ve found a workaround: In the settings, check the “Always center first viewport window to screen”:

… This seems to stop the window resizing behavior.

4 Likes

I am not affected by this. Is this occurring from a completely blank project?

Yes, just tested it in a fresh 5.0 project:

  1. Play in New Editor Window (PIE)
  2. Each time you play, the window will grow slightly larger

It’s more visible when you quickly play/end play many times and e.g. observe the bottom of the window.

1 Like

Can confirm this bug is still happening, but it only appears to happen on my laptop and not my desktop computer. My laptop is a 4K display and my computer uses x4 1080p monitors. Perhaps that has something to do with it?

Quoted this reply to say it worked for me as well. Centering the first viewport on center fixes the issue of the window increasing it’s size by 2x8 everytime it closes.

Additional viewports are never affected by this bug.

2 Likes

Interesting, so that’s probably why some people are not affected by this, maybe it depends on the resolution. I’m on 3440x1440, so it’s also different than 1080p.

1 Like

Looks like this bug is happening if you have Scale set to something other than 100% in your Display settings.


My laptop has it set to 150% by default.

2 Likes

I had the same problem, after using web in my project, the standalone window was forced to be 1707 * 1607(2560/1.5 * 1600/1.5) when double-clicking full screen mode. My screen resolution was 2560 by 1600 and the scale was 150%. After I set the scale to 100%, everything was back to normal.

1 Like

I am having this problem while Windows 11 screen scale is %150 in UE 5.3.2.

Still a thing today. It’s so annoying…

Bug is in PlayLevel.cpp in void UEditorEngine::EndPlayMap() around its final parts. Specifically this part:

if (!PlaySettingsConfig->CenterNewWindow && PlaySettingsConfig->LastSize.X > 0 && PlaySettingsConfig->LastSize.Y > 0)
{
	PlaySettingsConfig->NewWindowPosition = PlaySettingsConfig->MultipleInstancePositions[WindowIndex];
	PlaySettingsConfig->NewWindowWidth = PlaySettingsConfig->LastSize.X;
					PlaySettingsConfig->NewWindowHeight = PlaySettingsConfig->LastSize.Y;
}

stores the new size on exit if and only if center window is not selected in the play options. But since the LastSize values represent the whole window size, not just the viewport area, size increases by the border and title bar with each subsequent PIE session. Short of an engine fix, setting “Always center…” to true - like one of the posters suggested (third post in the thread, written by Slavq) - fixes the resizing issue (but you no longer control the default location).

2 Likes

There is a (sadly backlogged) issue in the bug tracker for this, please upvote so it has a better chance of getting fixed!

1 Like