Performance
Draw call and batching
A draw call is one instruction from the game to the graphics card: draw this thing. Batching groups many things into one call. Fewer calls means a smoother game.
Watch: see it in 30 seconds
Video coming soon
A 30-second visual explanation
Why it matters for your game
- A browser game stutters long before the computer is 'full'; it is usually too many draw calls, and the fix is batching or atlases, not a faster PC.
- This is the reason your AI asks to put all the sprites into one atlas: everything in one image can be drawn in one call.
- Ask for the draw-call count when the frame rate drops. It is the first number a game developer looks at.
How it comes up when you talk to your AI
- 'Draw calls', 'batches', 'instancing' (drawing many copies of one thing in one call), 'frame time' in milliseconds.
- Sixteen milliseconds per frame is 60 frames a second; above that the game feels slow.
Ask your AI about it
Paste this into the assistant you build with. It is written to get a useful answer for your own project, not a textbook page.
Explain draw calls and batching for a browser game and why they matter more than raw computer speed. Show me how to display the draw-call count and frame time in the engine we use, and list the three usual fixes when the count is high.