Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing VM resolution detaches game from the main window #618

Open
vadosnaprimer opened this issue Sep 17, 2024 · 4 comments
Open

Changing VM resolution detaches game from the main window #618

vadosnaprimer opened this issue Sep 17, 2024 · 4 comments

Comments

@vadosnaprimer
Copy link
Contributor

изображение

изображение

Changing it back does the same.

@clementgallet
Copy link
Owner

I'm not entirely sure from your screenshots: natively, does changing the VM resolution changes the resolution of the pcem window (in pixels)? If that is the case, the current behaviour of libtas is not exactly a bug, but the consequence of something that we don't really want when TASing: an external factor (unrecorded in the movie) that changes the state of the game. In this situation, do we want to prevent the game window from resizing?

If the game window resolution did not change, then that is an issue indeed. If you close the detached game window, which should resize the top-level window to the resolution that libtas has saved, does the emulator behave and displays correctly?

@vadosnaprimer
Copy link
Contributor Author

I run libTAS in a Linux VM, specifically VMWare. I'm not changing the resolution of the emulated machine in PCem, only the resolution of the VMWare display.

PCem's resolution stays the same, and as you can see on the second screenshot, the image of the detached "game" is not pixel perfect, while on the first screenshot it is. libTAS thinks I detached PCem window from libTAS window, and for some reason it also makes the detached PCem window smaller.

After I close the detached window, proper behavior restores, as if it never got detached.

@clementgallet
Copy link
Owner

When you close the detached game window, is the top window resized to the size of what the game window was, or does the top level not change size?

Game window is detached when libTAS detects that the user manually resized the game window. That is what we want to achieve, this can be triggered by for example some window managers that controls the position and size of windows.

@vadosnaprimer
Copy link
Contributor Author

When you close the detached game window, is the top window resized to the size of what the game window was, or does the top level not change size?

The top window resolution doesn't change at any point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants