Lights does not render on iOS


Maybe related to this problem:

Lights are not rendered inside Safari and Chrome browser on iOS 13.7 if the radius is higher 255
Tried this preview:


Might be related to this:

Although I do know that WebGL is a hard requirement, and iOS has always had issues with WebGL dating back to 2014. No clue if that’s still a problem.

Not sure, it seems he is working on a way to detect ahead of time if WebGL is supported or not and if not then return null and don’t render the lights to avoid the project to crash.

The browser does support WebGL, pass all the tests I throw at it except the GDevelop test.
Not sure if it a compatibility problem on iOS/Safari side or is it something on GD side with the implementation but I do know that so far it did pass all the WebGL tests I tried except this but only when tha radius is higher than 255 :thinking:

Weird, I had heard of iOS and webgl compatibility issues before, but I’d trust your testing way over my memory :smiley:

Unfortunately, I’m not sure what would cause that specifically. I’d wait for someone with more knowledge around the light system to chime in.

Oh, I don’t doubt that iOS/Safari could have compatibility issues but so far I did not noticed any, even the lights in GD was ok as long I did not go above 255 radius, so there is plenty of things remain to be broken, I was just lucky to find one I guess :grin:

There is an error in the console ?

The only error I get is:

[blocked] The page at …/index.html was not allowed to run insecure content

Failed to load resources 403 Runtime/pixi-renderers/

I get this error also if the radius is below 255 and light is rendered and everything is working, not sure what sort of content being blocked there and if it related at all.

If you want, you can post a quick message and resume this topic on the current github issues for Light.

The dev work on another fix for light.
When you are sure you have a bug related to GDevelop if you can it’s easier on github because all developers are on it.
Contrary to the forum where there is a lot of notification in all directions we get lost.

unfortunately I am not 100% sure if this is a bug related to GDevelop or compatibility problem on iOS since the compiled code doesn’t throw any errors related to lights specifically, someone should debug the engine to be certain but I am not setup for that and i don’t feel comfortable take this to GutHub without being certain what is it.

Anyway, I just leave this here, hopefully someone able to debug this one day and decide if it a bug or not.


1 Like

4ian is the only one to have a iOS :wink:
And if it’s reported on github the author of the light extension will read your post and take a look on the radius parameters if this one is buggy he will found the bug.
He just needs to know the possible issue.

Hi, I have the same issue but on Android, the lights aren’t rendering, I have no error they just dissappear, while they don’t when I preview the game in gdevelop. How do you think I can fix this?

Reported on GitHub:

Let’s see if someone can figure this out :+1:

1 Like

I think the tests are perfectly reasonable, someone can’t randomly come up with a number like 256 (a power of 2). I can’t really test myself since I don’t have iOS/Safari, but I believe there’s definitely some limitation that doesn’t let lights being greater than 255 :thinking:. As far as I can see, webgl-2 is still an experimental feature in safari and in development, and 256 being a power of two seems like there are some limitations regarding shaders/buffers and textures.

It’d be really helpful if 4ian would be able to confirm this, then maybe we can find a solution to this :grimacing:.