Skip to content

Instantly share code, notes, and snippets.

View tomspilman's full-sized avatar
💭
I will be slow to respond.

Tom Spilman tomspilman

💭
I will be slow to respond.
View GitHub Profile
private SpriteBatchItem[] _leftArray;
private SpriteBatchItem[] _rightArray;
private void MergeSort(SpriteBatchItem[] input, int left, int right)
{
if (left >= right)
return;
var middle = (left + right) / 2;
MergeSort(input, left, middle);
@tomspilman
tomspilman / .mgstats
Created December 30, 2018 03:13
Example MonoGame MGCB Statistics CSV File
Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Size,Build Seconds
"E:/Projects/mygame/content/Sprites/Chicken.png","E:/Projects/mygame/content/bin/iOS/Content/Sprites/Chicken.xnb","TextureProcessor","Texture2DContent",1706,1168,0.1111039
"E:/Projects/mygame/content/Sprites/Chicken.png","E:/Projects/mygame/content/bin/iOS/Content/Sprites/Chicken.xnb","TextureProcessor","Texture2DContent",1745,1245,0.0138884
"E:/Projects/mygame/content/Sprites/Cow.png","E:/Projects/mygame/content/bin/iOS/Content/Sprites/Cow.xnb","TextureProcessor","Texture2DContent",4590,3049,0.0238077
"E:/Projects/mygame/content/Avatars/Dick.png","E:/Projects/mygame/content/bin/iOS/Content/Avatars/Dick.xnb","TextureProcessor","Texture2DContent",7853,5115,0.0193439
"E:/Projects/mygame/content/Avatars/Dwarf.png","E:/Projects/mygame/content/bin/iOS/Content/Avatars/Dwarf.xnb","TextureProcessor","Texture2DContent",2834,2136,0.0124004
"E:/Projects/mygame/content/Fonts/Japanese.fnt","E:/Projects/mygame/content/bin/iOS/Co
EXCEPTION handling: System.InvalidOperationException: To be XML serializable, types which inherit from ICollection must have an implementation of Add(Microsoft.Xna.Framework.Vector2) at all levels of their inheritance hierarchy. XXXXXXXX.XXXXXXXX.OverlaidDictionary`2[[Microsoft.Xna.Framework.Vector2, MonoGame.Framework, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[XXXXXXXX.XXXXXXXX, XXXXXXXX, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null]] does not implement Add(Microsoft.Xna.Framework.Vector2).
EXCEPTION handling: System.InvalidOperationException: There was an error reflecting field 'objects'.
EXCEPTION handling: System.InvalidOperationException: There was an error reflecting type 'XXXXXXXX.XXXXXXXX'.
EXCEPTION handling: System.InvalidOperationException: There was an error reflecting type 'System.Object'.
EXCEPTION handling: System.InvalidOperationException: There was an error reflecting field 'scale'.
EXCEPTION handling: System.InvalidOperationException: There was an error reflecting type
using System;
using System.IO;
using Sickhead.Engine.Debugging;
using Sickhead.Engine.Util;
using System.Diagnostics;
namespace Sawmill.Common
{
static public class CrashLogger
{
private static bool ranActionStatic;
struct StaticsForAction
{
private static readonly List<int> _integers = new List<int>();
static StaticsForAction()
{
ranActionStatic = true;
}
<Type name="System.Collections.Generic.GenericComparer`1&lt; System.Single &gt;" assembly="mscorlib" />
class ThreadStaticBase
{
private:
int _tableSize;
int* _table;
System::Object** _store;
protected:
> Protobuild -generate XboxOne
Starting resolution of packages for XBoxOne...
Enabled parallelisation; use --no-parallel to disable...
Querying: https-git://github.com/OutOfOrder/MonoKickstart.git
Querying: https-git://github.com/MonoGame/MonoGame.Dependencies.git
Querying: https-git://github.com/ioctlLR/NVorbis.git
Resolving: https-git://github.com/OutOfOrder/MonoKickstart.git
Git repository present at ThirdParty/Kickstart\.git; leaving as source version.
Git submodule / repository already present at ThirdParty/Kickstart
loat* SoundVoice::CalculatePanMatrix(float pan, float scale, float *matrix, int srcChannels)
{
if (srcChannels == 1)
{
matrix[0] = (pan >= 0 ? ( 1.f - pan ) : 1.f) * scale; // Left
matrix[1] = (pan <= 0 ? ( -pan - 1.f ) : 1.f) * scale; // Right
}
else if (srcChannels == 2)
{
if ( -1.0f <= pan && pan <= 0.0f )
[21:23:28] : [exec] MMP: warning MM2006: Native library 'libgtk-x11-2.0.so' was referenced but could not be found.
[21:23:28] : [exec] MMP: warning MM2006: Native library 'uxtheme' was referenced but could not be found.
[21:23:28] : [exec] MMP: warning MM2006: Native library 'PVRTexLibWrapper.dll' was referenced but could not be found.
[21:23:28] : [exec] xcrun -sdk macosx install_name_tool -change /Library/Frameworks/Mono.framework/Versions/4.6.1/lib/libpixman-1.0.dylib @executable_path/../MonoBundle/libpixman-1.0.dylib -change /Library/Frameworks/Mono.framework/Versions/4.6.1/lib/libfontconfig.1.dylib @executable_path/../MonoBundle/libfontconfig.1.dylib -change /Library/Frameworks/Mono.framework/Versions/4.6.1/lib/libfreetype.6.dylib @executable_path/../MonoBundle/libfreetype.6.dylib -change /Library/Frameworks/Mono.framework/Versions/4.6.1/lib/libpng14.14.dylib @executable_path/../MonoBundle/libpng14.14.dylib /Applications/buildAgent/work/59a4b66548a5cef5/Tools/Pipelin