EvonX
Part of every EvonX build

Game optimizationA game is only fun once it has loaded.

Game optimization starts before anyone presses play, with the megabytes a phone has to download. While EvonX builds your game it ships only the files the game can load, re-encodes pictures as lossless WebP and runs every 3D model through a compression pass that never cuts a triangle. This page is about making games, not about speeding up the ones on your PC.

Build reportwanderwood-isles
Production build118 filesWebP picturesNo triangle cut
  • 3D models13.2 MB
  • Pictures2.9 MB
  • Code3.2 MB
  • Sound1.0 MB
  • Styles, fonts0.4 MB
Ready to play
Download20.7 MB

Build ready · 118 files · 20.7 MB

How it works

What happens to your game's files before anyone plays.

You do not run any of this. These are the steps of every production build EvonX makes.

  1. Step 1

    Only what the game can load ships

    The build reads the game's asset list, its look and its code, and copies only the files they name. A look the game does not wear and stock art no part of it reads stay out of the download. A file the game names that nobody made stops the build instead of failing on a player's phone.

  2. Step 2

    Pictures become lossless WebP

    Every PNG is re-encoded as WebP without changing a pixel, because games measure their own pictures and a 3D scene samples their transparent edges. On the generated pictures EvonX measured, the WebP files were 44% smaller than the PNGs.

  3. Step 3

    Each 3D model gets one compression pass

    A model goes through the optimize step of gltf-transform as it lands: its texture maps re-encoded as WebP, duplicate vertices welded, unused data dropped. The simplify step is off, so no triangle is cut; the model is asked for at the right triangle count instead.

  4. Step 4

    Heavy parts are capped where a brief asks

    The same pass can shrink every map to a set size and pack the geometry into 16-bit numbers. EvonX's Metro city look uses both: its pistol ships with 512-pixel maps and quantized geometry, 85 KB for the whole file.

  5. Step 5

    Budgets are measured, not hoped for

    Each model is counted against the triangle ceiling of its role. A game's plan can also set budgets the playtest measures: the code bundle in kilobytes, the textures loaded at once, and for 3D games the draw calls and triangles of a frame.

What is game optimization

Optimizing a game starts with knowing where the megabytes are.

For someone making a game, optimization means it loads quickly and runs smoothly on the devices its players own. The first half of that is weight, and you cannot cut weight you have not measured. The map shows three real production builds of EvonX templates, every file a tile sized by its bytes.

In Wanderwood Isles, an island RPG, 31 model files make up 13.2 of its 20.7 MB. Fresh Corner, a supermarket game, weighs 27.8 MB: 13.8 MB of models and 9.4 MB of pictures. City Survivor 3D carries 181 pictures, 14.8 of its 19.3 MB, and only two model files. The code is about 3.2 MB in each, the same engine underneath. Three games, three different places to look first.

island RPG template20.7 MB · 118 files
tree-round.glbworkshop.glbbrute.glbhouse.glbhut.glb51 more filesindex.js

3D models13.2 MB · 64.0% of the download · Point at a tile to read the file

  • 3D models64.0%
  • Pictures13.9%
  • Code15.4%
  • Sound4.7%
  • Styles, fonts, page1.9%

Game file size

Inside a 3D model, the textures weigh the most.

Open the model files of Fresh Corner and the geometry turns out to be the small part. Each column is one of its 32 models, stacked by what its bytes hold: three texture maps, the geometry with its JSON, and animation for the two rigged people. The maps are 77.8% of the 13.8 MB.

The heaviest map is not the one you see. A metal-roughness map tells the light how shiny each point is, and here it takes 6.4 MB, nearly half of all model bytes, while the colour maps take 1.7 MB. Thirty of the models carry their maps at 2048 by 2048 pixels, the size the 3D service delivered. So reducing a game's size is mostly a texture question; the triangle count barely moves the total. How large a texture needs to be is answered on the mipmaps page.

Fresh Corner · 32 modelsmaps: 77.8% of the models' bytes
pet-chick.glb806 KB · maps 2,048 px

How to optimize a game

One compression pass, switched per model.

Every model EvonX ships runs through the same command, and its switches decide how much it saves. The terminal lights the switches each real file went through; the cards show what came out. The simplify switch is always off, so the triangles a model was made with are the ones it ships with.

The katana of the fighting template went through without a texture cap: 369 triangles, yet 363 KB, because 95% of the file is three 2048-pixel maps. The fighter Ren was rigged from 512-pixel pictures, so his maps stayed small. The pistol of the Metro look was capped at 512 pixels and its geometry quantized to 16-bit numbers: 20 bytes a vertex instead of 32, and 85 KB for the whole file. Quantizing is off by default in a build, because it can facet a small rounded body.

Game loading time

How to make a game load faster: do the arithmetic first.

Transfer time is plain arithmetic: megabytes times eight, divided by the connection's megabits per second. Pick a game and a speed, and the calculator works it out for every kind of file in the real build. At 10 Mbit/s, Fresh Corner's 27.8 MB needs about 22 seconds to arrive, and its models alone account for 11 of them.

That is where a faster load comes from: fewer bytes, starting with the largest block, rather than shaving the code, which is already bundled and small next to the art. Read the result as the cost of a first visit with every file fetched; it leaves out caching on a second visit and the time a phone spends unpacking and drawing. The bar in the phone runs at a fixed, sped-up pace before the game's own recording plays.

22s to transfer every file of the build

27.8 MB × 8 ÷ 10 Mbit/s = 22 s

  • 3D models11 s
  • Pictures7.5 s
  • Code2.6 s
  • Sound0.8 s
  • Styles, fonts, page0.3 s

What you get

A lighter game without a checklist.

A smaller download, unasked

Pruning, WebP and the model pass run in every production build, the first one included. Nobody has to remember an export setting.

Pictures that stay exact

Lossless WebP keeps every pixel and the colour under every transparent one, so outlines, measured sprites and 3D edges look the way they were made.

Models with their shape intact

No step cuts triangles after a model is made, so a silhouette is never the leftover of a simplifier. The [polycount](/features/3d-model-check) is planned per role instead.

Numbers you can check

The playtest reports what the game used against its budgets, and the free tools on this site read any GLB's size, textures and triangles in your browser.

Already have a heavy GLB?

Shrink your own model, free, in your browser.

The free GLB compressor resizes textures, stores them as WebP, welds vertices and can reduce triangles on a file you already have, rigged characters included. Nothing is uploaded: compare before and after, then download.

Open the GLB compressor

Honest limits

What the build does not do.

Geometry stays 32-bit by default

A build leaves vertex data in 32-bit floats unless a model's brief turns quantizing on, which keeps small rounded bodies smooth. Draco and meshopt compression are not used.

No automatic texture cap per role yet

In your build, a moving character's pictures go to the rigger at 1024 pixels. Other models keep the size the 3D service made, 2048 pixels in the models we measured. The cap is a brief setting EvonX's own templates use.

No KTX2 textures

Maps ship as WebP. They are small to download but unpack to full size in graphics memory; GPU-compressed KTX2 textures are not used today.

The check counts triangles, not megabytes

A model over its triangle ceiling stops the build, but no model is refused for its file size, and a plan's bundle budget covers code and styles only.

Not a PC tuner

This is about making games. It does not change graphics settings or speed up games installed on your computer.

Questions

Game optimization, answered.

What is game optimization?

For a game maker, game optimization is the work that makes a game load quickly and run smoothly on the devices its players use: smaller files, lighter textures, fewer things to draw in each frame. For a player it often means tuning a PC's settings, which this page does not cover.

How do I make a game load faster?

Ship fewer bytes, the biggest block first. Measure the build, find the largest kind of file and work there: in 3D games that is usually the texture maps inside the models. EvonX ships only the files a game can load, re-encodes pictures as WebP and compresses every model in each build.

Why is my game's file size so big?

In the three EvonX builds measured on this page, the largest share was always 3D models or pictures, never the code, which was about 3.2 MB in each. Inside the models, texture maps were 77.8% of the bytes, most of them 2048 by 2048 pixels.

Does EvonX reduce the polygons of my models?

No. A model is asked for at the triangle count its role needs and is never cut afterwards: the compression pass runs with its simplify step off. The polycount page shows the budget of each role.

Does compression make my pictures look worse?

Not the 2D pictures: they become lossless WebP, the same pixel for pixel. The texture maps inside 3D models are re-encoded as WebP by the model pass, which can be lossy, and a map only gets smaller in size when its brief sets a cap.

What does video game optimization cover besides file size?

The cost of each frame: how many things are drawn and how many triangles. EvonX's 3D games declare draw-call and triangle budgets that the playtest measures; game playtesting explains how.

Can I compress a GLB I already have?

Yes, with the free GLB compressor on this site. It resizes and re-encodes textures, welds vertices and can reduce triangles, all in your browser, and shows the size before and after.

Do I have to optimize a game made with EvonX myself?

No setting has to be turned on: pruning, WebP and the model pass are part of every production build. If a game still feels heavy, tell the chat, for example to show fewer copies of a model at once or to give a model a lighter role.

Make the game. Keep the download small.

Describe your game. EvonX builds it, ships only what it loads and compresses what it ships, so it opens on a phone.

Make a game