Hi,
Gideros can target iOS Metal engine instead of OpenGL since 2019.2, and enabling it was made easier in 2019.4, but it is still beta because largely untested. I am opening this thread to collect bug reports regarding Metal support, so that we can make it solid before it becomes a requirement.
Everyone who target iOS should have a go at Metal for testing. Please report here what happens!
Comments
-[MTLDebugRenderCommandEncoder setScissorRect:]:2682: failed assertion `(rect.x(110) + rect.width(642))(752) must be <= render pass width(750)'
Obviously Metal is more strict than OpenGL. This one is related to setClip()
Likes: vitalitymobile, SinisterSoft, Apollo14, MoKaLux
Likes: MobAmuse
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
After looking around the web it appears that Metal can't run on the simulators and it doesn't look like it will anytime soon, despite the fact that Apple is going to deprecate Open GL [Big Clap for Apple!].
Is there a boolean anywhere that we can set to run on Open GL, or is Open GL no longer supported by Gideros? It seems to default to metal.
Really, I just wanted to work out how to deal with the notch properly. I suppose I could always revert to an older version of Gideros and do another build, but is there an easier way? Thanks
Edit: I just found the checkbox "Enable Metal" under the require plugin but it was unticked. However, the crashes in the simulator were all related to Metal.
.../EAGLView.h:33:5: Unknown type name 'CAMetalLayer'; did you mean 'CATextLayer'?
.../EAGLView.m:42:17: Unknown receiver 'CAMetalLayer'; did you mean 'CATextLayer'?
.../EAGLView.m:52:26: Use of undeclared identifier 'CAMetalLayer'; did you mean 'metalLayer'?
.../EAGLView.h:34:8: No type or protocol named 'CAMetalDrawable'
It is only a problem in the XCode simulators. It runs fine on a real device.
Enable metal wasn't ticked.
The simulators can't use Metal (mac hardware) but perhaps the app attempts to use Metal because it thinks it is running on a real device - but I'm just guessing.
Is there any simple hack for the current version of Gideros or would I need to do a new build with an old version to check how things look in the iPhone x etc?
If metal is stable on devices, we would still want to use it because of its performance increase and the fact that they are going to deprecate open gl. So if your solution is like a fallback that would be perfect.
Likes: EricCarr
"buying more of their crippled shit" or "buying more of their overpriced crap"
Likes: antix
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
See EAGLView.h/.m changes in this commit https://github.com/gideros/gideros/commit/dee68f577b6b3e6db8d192fa2794b68cb5fe6d4a
Likes: Apollo14, MoKaLux, MobAmuse
Likes: hgy29, MobAmuse
Likes: MobAmuse
https://www.dropbox.com/s/chclodqphmpuf0r/iOSMetalTest.zip?dl=0
[Edit: archive deleted as now fixed below]
Likes: MoKaLux
Gotta go now but back 2moz.
Likes: MobAmuse, MoKaLux
Likes: MoKaLux
Likes: MoKaLux, MobAmuse, keszegh
Likes: MobAmuse, MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Likes: MobAmuse