Can Babylon.js develop large web browser games the size of GTA 5, especially for mobile web browsers?

If this is possible, any optimization tips for user/game performance, especially to:

minimize

  • game loading time;
  • game/user lag;

maximize

  • user/game responsiveness,
  • game running/processing speed;

What else can be done besides asset compression/preloading, incremental loading & streaming, chunking?

Hi @c4cc and welcome to the community!

No, but not because of some inherent limitation of Babylon.js, but because GTA 5 cost $265m and 100s of developers over 5 years to make … and it was never released on mobile or designed for asset streaming over the internet.

The docs have a good overview of general Babylon.js scene optimization techniques, so this is the best place to start.

2 Likes

Thanks, what about games the size of GTA San Andreas?

No, absolutely not, a quick web search shows the heap memory limit of iOS, a widely-used os for mobile devices. These numbers are a lot smaller that native apps, so never expect that web-based engines to be even comparable with native ones in case of rendering massive/large assets.


Source:

To compare with, Chrome on Desktop allows a maximum of 4GB of per-tab heap, GTA5 requires about 105GB of disk for compressed assets, 8GB RAM, and 4GB VRAM.

3 Likes

any way to directly utilize the GPU in mobile devices to enable such large games the size of GTA5 or GTA San Andreas to be played on mobile web browsers?

Yes there is, but it might not work as what you expected. The tech to play large games on mobile is called cloud gaming, or game streaming, it runs the game on a powerful server with very low latency network, the inputs from mobile is captured and passed to the server, and server transfers back the encoded frames.

Moonlight is an example of this tech with open source server and clients:

You can make a “GTA Vice City” maybe, but on mobile, I don’t think so. On a PC why not, but you have to optimize the 3d models. They should not be too detailed.
Making a “GTA San Andreas” is still too large.

Afaik Mincraft Classic is Javascript / Babylon. Minecraft’s world is larger than GTA 5 :wink:

2 Likes