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
PyGame window stops updating after moving the window to another screen (mac) #1720
Comments
Hi, thanks for the report. I think this is fixed in pygame 2. Are you using 1.9.6? |
No, I was using Tested |
I can't reproduce this on my Mac 10.13.6 Intel Iris Pro 1536 MB, NVIDIA GeForce GT 750M with python 3.7. Maybe it's the MacOS version or ATI driver triggering the issue. Can you please try with these two examples to see if they work? python3 -m pygame.examples.aliens This one prints out a few diagnostic issues, and renders in a different way to the first. python3 -m pygame.examples.setmodescale
renderer: metal flags: 0b1010
accelerated
render to texture If either of these work (or one), that narrows it down :) If they both work, then can you please post some code to reproduce? |
Output from
(Using python 3.7.2) |
I assume this is related to this: |
I don't think so. The aliens example dosen't use SCALED to get a SDL renderer, so I don't see how it could be related.
I tried it on MacOS 10.15.4, pygame2.0.0.dev8 and Python 3.8.2 and I also can't reproduce it. |
I've just tested the setup from If I use winstyle = pg.SCALED #0 # |FULLSCREEN
bestdepth = pg.display.mode_ok(SCREENRECT.size, winstyle, 32)
screen = pg.display.set_mode(SCREENRECT.size, winstyle, bestdepth) it works, and But if I use winstyle = 0 # |FULLSCREEN
bestdepth = pg.display.mode_ok(SCREENRECT.size, winstyle, 32)
screen = pg.display.set_mode(SCREENRECT.size, winstyle, bestdepth) it stops working and |
This also happens to me, all I wanted to do was to enter some code into idle but it decided to not work, I went to flip the display but I got nothing... |
I am also using version 2.0.0.dev9 and I get None when I get_renderer_info() |
To add more to my previous comments, my window still gets frozen but it says I am using metal |
I think I'm having the identical issue but on Linux (KDE neon). I noticed that this occurred with pygame 2.0.0.dev8 and has continued with dev10. It happens with my personal game, and also when I run I've made a screen capture so you can see it here. (I tweaked the game to slow down the aliens so that the player wouldn't die and the window wouldn't disappear too quickly...) PyGame dev10 bad screen updates.zip I've also tried
Anything else you need to know? |
Not to be super condescending, but if you lose in aliens, the game stops updating and quits, right? Are you sure it isn't that? Maybe we should add an animated (GAME OVER, PRESS ANY KEY TO QUIT) screen to this game to make this easier to test, or make the game pause when it loses focus. If it isn't that, we'd need to look into the way |
It's not that - you can how it looks in the attached video. I do suspect it is an artefact of dirty rect optimisation for the aliens game, because pygame clearly is still updating, it's just only updating the display surface under the aliens that move. Perhaps display.update() calls using the rects argument need to check for changes in the the SDL_WINDOW_MOUSE_FOCUS flag and then repaint the whole screen once rather than using the rects? |
For what it's worth I can't replicate the issue, works fine on my MacBook running Catalina 10.15.5 using pygame 2.0.0.dev10 and python 3.8.3, although |
I haven’t tried the dev10 version yet but I also installed Kivy and removed
it if that helps at all
…On Sun, Jul 5, 2020 at 3:02 PM rethanon ***@***.***> wrote:
For what it's worth I can't replicate the issue, works fine on my MacBook
running Catalina 10.15.5 using pygame 2.0.0.dev10 and python 3.8.3, although
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1720 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEOTTQM6SJ2PU5GWRAEZZRDR2DZ5RANCNFSM4M52GFLQ>
.
|
If I move the PyGame window from the screen it was started on to another screen, it stops updating itself. It doesn't start updating again even if moved back to the original screen. Nothing in the terminal and Esc quits the application as normally. Tried own application and
python3 -m pygame.examples.aliens
On macOS Mojave 10.14.6 (18G4032). Graphics Radeon Pro 450 2 GB, Intel HD Graphics 530 1536 MB
The text was updated successfully, but these errors were encountered: