unity-optimization

Showcase of Unity optimization techniques. Each demo includes a before & after.

Stars
4
Committers
1

Unity 6 Optimization Showcase

This repo includes optimization techniques for the Unity game engine.

Getting Started

  1. Download this repo (_.zip or _.git)
  2. Download the Unity Editor
  3. Open this repo in the Unity Editor
  4. Enjoy

Table of Contents

  1. Videos
  2. Features
  3. Structure
  4. Resources
  5. Credits

Videos

This Unity Project is featured in the following YouTube video playlist.

Features

This project is a living list of demos optimization techniques.

For each technique there is a demo of before and after Scene.

Topics

Key

  • = Included now
  • = Included soon
  • = Included never

List

# Title Description Before After
1 Static Batching Combine static objects
2 Level of Detail (LOD) Adjust detail based on distance
3 Occlusion Culling Prevent rendering hidden objects
4 Texture Atlases Combine textures into atlases
5 Physics Optimization Use simpler colliders for physics
6 Imposters Replace distant objects with 2D
7 Object Pooling Reuse instantiated objects
8 Jobs vs OOP vs DOTS Compare OOP, Jobs, DOTS
9 ShaderGraph Optimization Optimize shaders with ShaderGraph
10 VFXGraph Optimization Optimize effects with VFXGraph
11 GPU Instancing Render multiple objects with one call
12 Lighting Optimization Optimize lighting with lightmaps and probes
13 Sprite Atlases Combine sprites into atlases
14 Scripting Performance Optimize scripting operations
15 Memory Performance Manage memory and garbage collection
16 GPU-Resident Drawer Keep draw data on GPU

Structure

Documentation

  • ReadMe.md - The primary documentation for this repo
  • Unity/Assets/Documentation/ReadMe.asset - Select this asset in Unity to get started

Configuration

Structure

  • Unity/ - Open this folder in the Unity Editor
  • Unity/Assets/Scenes/ - Open any Scene. Press 'Play'!

Dependencies

Resources

Best Practices

  • Unity Best Practices (Portfolio)
  • Unity Best Practices (GitHub Repo)

Optimization

  • Unity Optimization (Portfolio)
  • Unity Optimization (GitHub Repo)

Credits

Created By

  • Samuel Asher Rivello
  • Over 25 years XP with game development (2024)
  • Over 11 years XP with Unity (2024)

Contact

  • Twitter - @srivello
  • Git - Github.com/SamuelAsherRivello
  • Resume & Portfolio - SamuelAsherRivello.com
  • LinkedIn - Linkedin.com/in/SamuelAsherRivello <--- Say Hello! :)

License

Provided as-is under MIT License | Copyright 2024 Rivello Multimedia Consulting, LLC