Skip to content

Instantly share code, notes, and snippets.

View yxsamurai's full-sized avatar

samurai_d yxsamurai

View GitHub Profile
@yxsamurai
yxsamurai / GPUOptimizationForGameDev.md
Created October 19, 2021 02:29 — forked from silvesthu/GPUOptimizationForGameDev.md
GPU Optimization for GameDev
@yxsamurai
yxsamurai / objectpool.cs
Created June 22, 2020 12:31
simple object pool
using System;
using UnityEngine;
public interface IPooledObject {
void Dispose(); // { ObjectPool<T>.Recycle(this); }
void Reset();
}
public static class ObjectPool<T> where T: class, IPooledObject, new() {
@yxsamurai
yxsamurai / gist:20aa21f8ef666f4ebac5f14be5f8f21c
Created April 26, 2019 08:28
Simple Mobile Profiler For Unity 2018.3 + LWRP
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Rendering;
namespace UnityEngine.Experimental.Rendering
{
public class CustomProfiler : MonoBehaviour {
public bool enable = true;