Opened 12 years ago

Last modified 9 years ago

#1606 new defect

Resizing the game window produces GL errors (when much smaller than 1024x768)

Reported by: Mikhail Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Core engine Keywords: gui resizing
Cc: Patch:

Description (last modified by historic_bruno)

There are 2 issues I've noticed recently:

  1. Main menu becomes distorted when you go into windowed mode and resize game window to something smaller than 600x600. You can see this behavior on screenshots: hud_screen.png and hud_screen1.png.
  1. When in-game: go into windowed mode and start resizing window to smaller size. At some point you'll get error message: "ERROR: CRenderer::EndFrame: GL errors occurred". I've attached mainllog.html to this ticket so you can view the details.

Also, as I've noticed, all ingame models are being scaled when you resize game window. Is it supposed to happen or just a glitch?

All of this behavior I've encountered playing r11863 on Gentoo ~amd64 and on Windows XP x64 (running as VirtualBox guest).

Attachments (5)

hud_screen.png (491.8 KB ) - added by Mikhail 12 years ago.
Screenshot 1
hud_screen1.png (328.8 KB ) - added by Mikhail 12 years ago.
SCreenshot 2
mainlog.html (30.8 KB ) - added by Mikhail 12 years ago.
Game log
scaling-before.jpg (439.7 KB ) - added by Mikhail 12 years ago.
Before resizing
scaling-after.jpg (130.5 KB ) - added by Mikhail 12 years ago.
After resizing

Download all attachments as: .zip

Change History (15)

by Mikhail, 12 years ago

Attachment: hud_screen.png added

Screenshot 1

by Mikhail, 12 years ago

Attachment: hud_screen1.png added

SCreenshot 2

by Mikhail, 12 years ago

Attachment: mainlog.html added

Game log

comment:1 by Mikhail, 12 years ago

Summary: GUI is being distorted on window resizingGUI is being distorted whe you resize the game window

comment:2 by Erik Johansson, 12 years ago

Summary: GUI is being distorted whe you resize the game windowResizing the game window produces GL errors

The game is really not meant to be played on a screen smaller than at least 1024x768.

I'll leave this open though, as scaling the window should preferably not cause any errors, even if you scale it this small.

comment:3 by historic_bruno, 12 years ago

Description: modified (diff)
Summary: Resizing the game window produces GL errorsResizing the game window produces GL errors (when much smaller than 1024x768)

comment:4 by Mikhail, 12 years ago

Yes, I understand that screen resolution smaller than 1024x768 is not quite playable. So maybe it is better to add some restrictions. For example, implement a list of supported resolutions in the Settings menu. Or maybe limit users' ability to resize game window, making it impossible to achieve such small screen size.

And what about scaling of ingame models? Is it intended to be so? Because I don't think that it would be playable when scaled down in 1280x1024 with two or three big armies on screen.

comment:5 by historic_bruno, 12 years ago

Can you attach screenshots of the scaling behavior? Preferably before and after.

by Mikhail, 12 years ago

Attachment: scaling-before.jpg added

Before resizing

by Mikhail, 12 years ago

Attachment: scaling-after.jpg added

After resizing

comment:6 by Mikhail, 12 years ago

Yes, here they are.

comment:7 by historic_bruno, 12 years ago

I think the scaling you're referring to is maintaining the (vertical?) field of view. It should be possible to zoom in or out to see less or more of the world. It seems to be working as designed.

comment:8 by Mikhail, 12 years ago

Thanks for the explanation. That's all I wanted to know.

comment:9 by historic_bruno, 11 years ago

SDL 2.0 will have an SDL_SetWindowMinimumSize function, not sure how or if it works on every OS.

in reply to:  9 comment:10 by historic_bruno, 9 years ago

Replying to historic_bruno:

SDL 2.0 will have an SDL_SetWindowMinimumSize function, not sure how or if it works on every OS.

This function works in Windows, but the problem is it sets the fullscreen resolution as well, if the window becomes fullscreen (and SDL_WINDOW_FULLSCREEN is used).

Note: See TracTickets for help on using tickets.