Draw Calls in Unity

Introduction A draw call in Unity refers to the process where the game engine sends a request to the GPU to render objects in the scene. It involves setting up the necessary state for rendering (e.g., material, shaders, textures, meshes) and issuing the command to render a particular object or group of objects. Each time an object requires a unique material, shader, or other rendering properties, a new draw call is made....

March 22, 2025 · 2 min · 322 words · Me

Structs_VS_Classes

May 8, 2024 · 3 min · 445 words · Me

Lerping

What is Lerping? Lerp, or Linear Interpolation, is a mathematical function in Unity that returns a value between two others at a point on a linear scale. Most commonly it’s used for moving or changing values over a period of time. So when you are doing “Linear Interpolation” you are Linearly inserting a new point between 2 points. Linear Interpolation is inserting a new point between 2 points on a straight line....

May 3, 2024 · 1 min · 161 words · Me

Serialization

What is Serialization? Serialization is the process of converting a data object which is a combination of code and data into a series of bytes which is saved as transmissible object. The data can then be transferred to another destination. Why do we need to Serialize? Serialization enables us to save the state of an object and recreate the object in a new location.Serialization encompasses both the storage of the object and exchange of data....

May 3, 2024 · 2 min · 214 words · Me

Caching

Caching What is Caching? A cache is a high speed data storage which stores a subset of data, typically transient in nature, so that future requests for that data are served up faster than is possible by accessing the data’s primary storage location. Caching allows you to efficiently reuse previously retrieved or computed data. How does Caching work? The data in a cache is generally stored in fast access hardware such as RAM (Random-access memory) and may also be used in correlation with a software component....

April 22, 2024 · 2 min · 232 words · Me

Singleton

Singleton Pattern in Unity 1. Introductory Overview Pattern Name: Singleton Pattern One-Sentence Summary: The Singleton pattern ensures that a class has only one instance and provides a global point of access to it, making it ideal for managing game-wide services in Unity. 2. Problem Context Practical Scenario: In many games, you need a centralized manager for handling game states, audio, or settings. For example, a GameManager that persists across scenes to track player progress and game state....

April 22, 2024 · 2 min · 315 words · Me