Optimize non-Apple SSDs on OS X. (Run the following commands in the terminal.)
Enable TRIM support
Check IOAHCIBlockStorage version:
open /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/version.plist
| // -- | |
| // The MIT License | |
| // | |
| // Copyright (c) 2013 tatsuhiko yamamura | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR |
| class MyBehaviour : MonoBehaviour | |
| { | |
| public MyBehaviour Init (int some, float parameters) | |
| { | |
| //... | |
| return this; | |
| } | |
| } | |
Optimize non-Apple SSDs on OS X. (Run the following commands in the terminal.)
Check IOAHCIBlockStorage version:
open /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/version.plist
| #!/bin/bash | |
| # We need the TAB character for SED (Mac OS X sed does not understand \t) | |
| TAB="$(printf '\t')" | |
| function abort { | |
| echo "$(tput setaf 1)$1$(tput sgr0)" | |
| exit 1 | |
| } |
| using UnityEngine; | |
| using System.Reflection; | |
| public class TerriblyHackyLog : MonoBehaviour | |
| { | |
| void Start () | |
| { | |
| Log ("Aaaaarrrrgh!"); | |
| } |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
| Builds | |
| Debugging Output | |
| Screenshots | |
| Source Material | |
| Temp | |
| *.csproj | |
| *.pidb | |
| *.sln | |
| *.unityproj | |
| *.userprefs |
| using UnityEngine; | |
| using System.Collections; | |
| public class Player : MonoBehaviour | |
| { | |
| [SerializeField] protected Hint m_HintPrefab; | |
| [SerializeField] protected Footfall m_FootfallPrefab; | |
| [SerializeField] protected Material m_FootfallMaterial; | |
| [SerializeField] protected EndlessTiles m_EndlessTiles; | |
| [SerializeField] protected GUIText m_LivesText; |
| using UnityEngine; | |
| using System.Collections; | |
| public class SuperChaseCamera : MonoBehaviour | |
| { | |
| public Transform m_Target; | |
| public Vector3 m_TargetOffset = new Vector3(0.0f, 1.0f, 0.0f); | |
| public Vector3 m_ChasingOffset = new Vector3(0.0f, 1.0f, -10.0f); | |
| public Vector3 m_LeadingOffset = new Vector3(0.0f, 1.0f, 20.0f); | |
| public float m_NormalisingFactor = 0.1f; |
| // Adjust dSYM generation | |
| var xcodeProjectPath = Path.Combine(xcodeProjectDir, "Unity-iPhone.xcodeproj"); | |
| var pbxPath = Path.Combine(xcodeProjectPath, "project.pbxproj"); | |
| var sb = new System.Text.StringBuilder(); | |
| var xcodeProjectLines = File.ReadAllLines(pbxPath); | |
| foreach (var line in xcodeProjectLines) | |
| { | |
| // Remove from OTHER_LDFLAGS |