Skip to content

Instantly share code, notes, and snippets.

@SnopyDogy
SnopyDogy / PerformanceTester.cpp
Last active December 16, 2015 04:59
A Class for testing the performance of code in isolation. Useful for testing one algorithm against another in a controlled environment. Includes a main function sowing example usage (it testes for and for each loop performance).
////////////////////////////////////////////////////////////
/// @file PerformanceTester.cpp
/// @author Greg Nott
/// @version 1.0 - Initial Version
/// @date 22/3/13
////////////////////////////////////////////////////////////
#include "PerformanceTester.h"
#include <stdio.h>
@SnopyDogy
SnopyDogy / DebugManager.cs
Last active February 3, 2016 10:27
A debug console for use in Unity games.Features include Command History, Auto-Complete and the use of Attributes to specify Commands.Based on the debug console found here: http://bitflipgames.com/2010/09/16/tips-for-working-with-unity-4-coding-and-general-tips/ For details see here: http://blog.gvnott.com/2013/12/24/the-s-w-a-p-debug-console/
// --------------------------------------------------------------------------------
// Copyright (C)2010 BitFlip Games
// Written by Guy Somberg guy@bitflipgames.com
//
// I, the copyright holder of this work, hereby release it into the public domain.
// This applies worldwide. In case this is not legally possible, I grant any
// entity the right to use this work for any purpose, without any conditions,
// unless such conditions are required by law.
// --------------------------------------------------------------------------------
// Copyright (C)2013 Chaos Theory Games