Setup: https://github.com/geerlingguy/raspberry-pi-dramble/wiki/microSD-Card-Benchmarks
Benchmarks performed on a Raspberry Pi Model B
| Card Make/Model | hdparm buffered |
dd write |
4K rand read | 4K rand write |
|---|
| // https://frarees.github.io/default-gist-license | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using UnityEngine.Profiling; | |
| [InitializeOnLoad] |
| #!/bin/sh | |
| if [ "$#" -ne 4 ]; then | |
| echo "Usage: $0 url start_time end_time out_file" >&2 | |
| exit 1 | |
| fi | |
| URL=$(youtube-dl -f 22 -g $1) | |
| ffmpeg -ss $2 -i ${URL} -t $3 -c:v copy -c:a copy $4 |
| using UnityEngine; | |
| public class Follow : MonoBehaviour | |
| { | |
| [SerializeField] Camera m_Camera; | |
| [SerializeField] Transform m_Target; | |
| [SerializeField] Vector3 m_WorldOffset; | |
| [SerializeField] Vector3 m_ScreenOffset; | |
| [SerializeField, Tooltip ("Will not update depth/Z")] bool m_KeepDepth; | |
| [SerializeField, Tooltip ("Won't work if Keep Depth is ON")] float m_DepthOffset; |
Setup: https://github.com/geerlingguy/raspberry-pi-dramble/wiki/microSD-Card-Benchmarks
Benchmarks performed on a Raspberry Pi Model B
| Card Make/Model | hdparm buffered |
dd write |
4K rand read | 4K rand write |
|---|
| using UnityEngine; | |
| using UnityEngine.UI; | |
| [RequireComponent (typeof (Image), typeof (Collider2D))] | |
| public class ColliderMask : MonoBehaviour, ICanvasRaycastFilter { | |
| Image m_Image; | |
| Collider2D m_Collider; | |
| void Awake () { |
| // I'd like to serialize the GetComponents result straight away when getting components via interface | |
| // That would avoid allocating more memory for another list that can be serialized | |
| // signature: void GetComponents<T, K> (List<T> result) where T : Component; | |
| public class MyBehaviour : MonoBehaviour, ICustom { | |
| List<MonoBehaviour> behaviours = new List<MonoBehaviour> (); | |
| void Awake () { | |
| GetComponents<MonoBehaviour, ICustom> (behaviours); |
| using UnityEngine; | |
| using System.Collections; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| public class Test : MonoBehaviour, ISerializationCallbackReceiver { | |
| [SerializeField, HideInInspector] int m_SerializedVersion; | |
| [SerializeField] string m_NewString; |
| // https://frarees.github.io/default-gist-license | |
| using System; | |
| using UnityEngine; | |
| [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
| public class MinMaxSliderAttribute : PropertyAttribute | |
| { | |
| public float Min { get; set; } | |
| public float Max { get; set; } |
| Shader "Projector/Grid" { | |
| Properties { | |
| _Color ("Color", Color) = (1,1,1,0) | |
| _ShadowTex ("Cookie", 2D) = "black" | |
| _Size ("Grid Size", Float) = 1 | |
| } | |
| Subshader { | |
| Tags { "RenderType"="Transparent" "Queue"="Transparent+100" } |
| // https://frarees.github.io/default-gist-license | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using Microsoft.CSharp; | |
| using System.CodeDom.Compiler; |