Page 1 of 1

Mac retina issues

Posted: Mon Oct 06, 2014 4:19 am
by jack_norton
This was reported by an user in my forums, testing SOTW using latest Ren'Py. He wrote:
I bought a new retina Macbook Pro, which means I get to experience all the funkiness that comes with retina displays.

In this case, I have scaled my normal desktop resolution to 3360x2100 (so really displays as 1680x1050), which means when I launch the game in full-screen mode, I get this.

Going into preferences (which is made a bit more difficult, since my mouse is something like 500 y coordinates lower than the menu visual) and toggling full-screen -> windowed -> full-screen will fix the game, but every time I launch I'll have to do this.
and also he added:
However, another mac-specific bug I've only seen in SotW so far (or perhaps the new version of the RenPy engine?): if I have the game in full screen and hit Command-M (minimize), the OS X genie animation plays where the game is minimized to the dock, but I'm left with a black screen covering my view and have to force a quit to escape. The expected behavior when playing full screen is the minimize action is blocked - mashing Command-M should do absolutely nothing. (Side note: it would be nice if there was a keyboard shortcut to toggle windowed mode. Some games use Command-F, some use Command-M, not sure if there's an official Apple standard, but I end up toggling a lot, even when not writing notes during a beta.)
Just FYI :D

Re: Mac retina issues

Posted: Mon Oct 06, 2014 5:07 am
by jack_norton
Also on a positive note, he added:
Sidenote about the new engine and performance improvements. Loren would burn through my laptop battery in just under 90 minutes. I managed to go 3 hours with SotW. (I get 7-8 hours if I just surf the web, so that's pretty good for a game.)
So good job with the new version! 8)

Re: Mac retina issues

Posted: Mon Oct 06, 2014 1:43 pm
by PyTom
jack_norton wrote:I get this.
You're dangling a pronoun there. Is there a screenshot?

Re: Mac retina issues

Posted: Mon Oct 06, 2014 1:45 pm
by Anima

Re: Mac retina issues

Posted: Mon Oct 06, 2014 1:49 pm
by jack_norton
Haha sorry, I just copy pasted the post text forgetting that there was an image. Thanks for adding it :D

Re: Mac retina issues

Posted: Mon Oct 06, 2014 1:52 pm
by Anima
That's what you have minions for, isn't it? :wink:

Re: Mac retina issues

Posted: Mon Oct 06, 2014 2:00 pm
by PyTom
I'll queue this up for 6.18.3.

Re: Mac retina issues

Posted: Mon Oct 06, 2014 3:04 pm
by jack_norton
Thanks, the same users also reported a different behavior in music. On Windows though seems to work like before, so I'm not sure if it's a real bug.
Thorough the game I change the music with this:

Code: Select all

label changemusic(musician,d=1.5):
    if renpy.music.get_playing() != musician:
        stop music fadeout (d)
        queue music musician
    return
calling it like:

Code: Select all

call changemusic("snd/whisper.ogg")
call changemusic("snd/winter.ogg",3)
etc etc, I don't see anything weird about it :?

Re: Mac retina issues

Posted: Mon Oct 06, 2014 4:43 pm
by PyTom
Music didn't change. (There was an addition of a function to tell if you're using a sound channel, but other than that, there weren't any changes.)

Re: Mac retina issues

Posted: Wed Oct 15, 2014 6:17 pm
by PyTom
I've been trying to repeat this issue on my mac, using retina emulation, but haven't been able to cause the problem to recur.

Re: Mac retina issues

Posted: Wed Oct 15, 2014 6:22 pm
by jack_norton
Well, will tell the user to get in touch maybe, since I don't have any way to reproduce it myself either :(

Re: Mac retina issues

Posted: Sat Oct 25, 2014 5:14 am
by Troyen
I'm the user with the problem. I get it on every Ren'Py game I've tried.

Note: it only happens if you start the game in fullscreen mode. If you start windowed and then toggle full-screen it's fine (until you quit and launch in fullscreen mode). I've had this happen in every Ren'Py game I have, across all publishers, but non-Ren'Py games don't have this particular issue.

My computer is a 2014 15" MacBook Pro Retina on 10.9.5. I doubt it's Mavericks because I have a 2010 15" MBP non-Retina running 10.9.5 and it doesn't have this problem.

I've narrowed it down to something with the embedded intel graphics card. If I disable automatic graphics switching to force it to run on my NVIDIA 750M, it'll run perfectly fine (though drain my battery a lot quicker). Resolution seems to have something to do with it too. I run in a scaled 3360x2100 (native is 2880x1800, but even that doesn't look right, in a different way). If I crank it up to 3840x2400, I see a much smaller piece of the bottom left-hand corner and all the buttons are really big (but still unclickable) - on Intel, all resolutions are OK on NVIDIA.

I don't know if this helps, but here's the spec for the Intel card:
Chipset Model: Intel Iris Pro
Type: GPU
Bus: Built-In
VRAM (Dynamic, Max): 1536 MB
Vendor: Intel (0x8086)
Device ID: 0x0d26
Revision ID: 0x0008
gMux Version: 4.0.8 [3.2.8]
And the fully-functional NVIDIA GeForce GT 750M:
Chipset Model: NVIDIA GeForce GT 750M
Type: GPU
Bus: PCIe
PCIe Lane Width: x8
VRAM (Total): 2048 MB
Vendor: NVIDIA (0x10de)
Device ID: 0x0fe9
Revision ID: 0x00a2
ROM Revision: 3776
gMux Version: 4.0.8 [3.2.8]
Unfortunately, only the 15" model comes with the NVIDIA card option. Everyone with a 13" rMBP is stuck using the Intel card.