How to Profile Unity WebGL Based Application on Your Browser ?

Posted on Tue 30 January 2024 in misc

Let's set the scene. You have a Unity application. It goes smoothly in Unity Editor, but when built in WebGL, embedded into your web page, and feed up with real data, it starts to slow down. How to profile that ?

Using Chrome profiler

Long story short, run your app in …


Continue reading

How to do Graphical Tests in Unity ?

Posted on Wed 15 November 2023 in misc

Introduction

Certain tests cannot be conducted solely by comparing the return value of a function, particularly when custom shaders are in use. In such scenarios, it becomes necessary to perform comparisons based on screenshots. Fortunately, Unity offers some tools to do so, using the Unity's Graphics Tests Framework.

Graphics Tests …


Continue reading

How to Handle Double Precision Coordinates in Unity ?

Posted on Fri 08 September 2023 in misc

Like most of 3D/Game engines, Unity works with single float precision coordinates. As it is not an issue for most use cases, this may be a problem when you deal with geographical coordinates or very large world. Let's see how to handle this problem using the Unity's High Precision …


Continue reading

Improve Your Unity Asset Usability With Samples

Posted on Thu 01 June 2023 in misc

No one read the documentation.

It is the sad truth. You have developed the most awesome Unity asset, using the most advanced state of the art ray-casted-signed-distance-field-backed-layer-based-mipmap-inspired-linear-fading technic, but no-one understands how to use it. So you wrote a documentation. But people won't read it. Because no one read the …


Continue reading