Fix #7644: (Cocoa) Manually set colorspace to sRGB #8023
Conversation
060ace2
to
2c22838
|
Crashes for me on macOS 10.13.6 (Macbook Pro, late 2010 model). I haven't looked into the details of the crash yet.
|
|
I tested from a clean starting point. Just adding the |
|
@nielsmh Thanks for checking, I was running without assertions which hid this error! Latest commit fixes the crash you experienced, WindowResized was being called before the colorspace was set. Although if you feel it's cleaner I/you can also remove the color_space member variable... |
|
Thanks for the review, I've implemented both requested changes. |
|
Seems to work better for me on 10.14.6 (MacBook Pro 15-inch 2019) |
|
good enough |
|
Performance is measurably better with this PR versus 1.10.0 beta 2 (using in-game FPS). This PR re-introduces the unfortunate magenta cast per #7644 (comment) Without wanting to be dramatic about it, that makes the game very visually unappealing, the magenta sprites are unpleasant and the contrast is significantly reduced. I guess there might just be no remedy for that. |
This commit manually sets the colorspace for the window to sRGB, as suggested in #7644 by @SoothedTau, to fix performance issues on OSX when using devices that use the P3 colorspace by default. This makes the game run smoothly on my laptop, with the full 33fps rate.