mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-02 05:36:43 +00:00
ios/ViewController.mm : Add a comment about a future optimization
This commit is contained in:
parent
49ce7178f5
commit
bb4920298b
@ -148,8 +148,7 @@ static GraphicsContext *graphicsContext;
|
||||
self.view.multipleTouchEnabled = YES;
|
||||
self.context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
|
||||
|
||||
if (!self.context)
|
||||
{
|
||||
if (!self.context) {
|
||||
self.context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
}
|
||||
|
||||
@ -159,6 +158,9 @@ static GraphicsContext *graphicsContext;
|
||||
[EAGLContext setCurrentContext:self.context];
|
||||
self.preferredFramesPerSecond = 60;
|
||||
|
||||
// Might be useful for a speed boot, sacrificing resolution:
|
||||
// view.contentScaleFactor = 1.0;
|
||||
|
||||
float scale = [UIScreen mainScreen].scale;
|
||||
|
||||
if ([[UIScreen mainScreen] respondsToSelector:@selector(nativeScale)]) {
|
||||
@ -167,8 +169,7 @@ static GraphicsContext *graphicsContext;
|
||||
|
||||
CGSize size = [[UIApplication sharedApplication].delegate window].frame.size;
|
||||
|
||||
if (size.height > size.width)
|
||||
{
|
||||
if (size.height > size.width) {
|
||||
float h = size.height;
|
||||
size.height = size.width;
|
||||
size.width = h;
|
||||
|
Loading…
x
Reference in New Issue
Block a user