The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+2 votes

I accidentally stumbled across Godot after hunting around for game engines that could potentially be used to create Facebook Instant games, which is looking to be the next big thing in terms of casual mobile gaming and social gaming. I was delighted to see an engine with a rich GUI, flexibility, c# support and the ability to export to HTML. However I notice that there is limited support in your web builds. Facebook instant currently requires that games use canvases rather than webgl, and that they can seamlessly run within mobile browsers. They also require the game files to be around 1mb.

Is this something that we can look forward to with Godot? I know unity really suffered with this due to the flexibility of the system making it really difficult to efficiently port games to the web, is this something you guys are struggling with too due to the flexibility of Godot?

in Engine by (14 points)

1 Answer

+1 vote

Facebook instant currently requires that games use canvases rather than webgl

As Godot currently only uses OpenGL ES for rendering (for 2D and 3D), it wouldn't make sense to use canvas rendering (which is less efficient, and only has very limited 3D capabilities which aren't hardware-accelerated).

They also require the game files to be around 1mb.

There is only so much that can be done to make a full-blown game engine smaller. (As you said, Unity suffers from the same problems when exported to HTML5.)

The WebAssembly module currently is around 3 MB when sent gzipped (which should be configured in the Web server you're using). If supported by your Web server, Brotli compression can help bring its size further down, but it would be unlikely to bring its size below 2.5 MB.

Disabling 3D support would help make it a bit smaller, but it would still be far above 1 MB when transferred.

by (12,878 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.