1

So the title pretty much says it already, I use the OpenGl ES template in Xcode to create a game. I use triangles for my code.

So what I want is basically the same like here, just for iOS instead of Android.

Can anyone help me please?

Community
  • 1
  • 1
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174

1 Answers1

2

While initializing the GLKView, call this to enable 4x MSAA, with view being your GLKView instance:

[view setDrawableMultisample: GLKViewDrawableMultisample4X];
Reto Koradi
  • 53,228
  • 8
  • 93
  • 133
  • Great! But it really tears down the fps in large files, is there a way to prevent the frame drop? – LinusGeffarth Dec 14 '14 at 18:21
  • How much is the performance loss in your case? It really shouldn't be that much, particularly on newer GPUs. – Reto Koradi Dec 14 '14 at 18:28
  • So on a huge file (1,9000,000 objects in array, while 6 objects are 1 point) it is 15fps with aa. But I just double-checked, without it it is 16fps. So this is apparently not the problem. Probably just the size – LinusGeffarth Dec 14 '14 at 18:31
  • oh and one more thing, do you know a way to increase the aa? – LinusGeffarth Dec 20 '14 at 19:15