AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-05-18 21:29:00 (12 years 7 months ago)
Author:Natalie Adams
Branch:default
Commit:572155ddc658
Parents: d25b6764c7e8
Message:Adding log items

Adding comments
Changes:
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/AxiosGameScreen.cs (6 diffs)

File differences

axios/Axios_settings.cs
8383
8484
8585
86
87
88
89
8690
8791
8892
* - Adding an extension to determine what side the objects collided on
* - Correcting misspelling of Extensions in String and Texture2D
*
* 1.0.1.6 - 5/18/2012
* - Adding cut extension - [Author: BJD]
* - Adding support for custom handling of Gleed2D items
*
*/
#endregion
axios/Engine/AxiosGameScreen.cs
146146
147147
148148
149
149
150150
151151
152152
......
154154
155155
156156
157
157
158158
159159
160160
......
163163
164164
165165
166
166
167167
168168
169169
......
374374
375375
376376
377
377
378378
379379
380380
......
386386
387387
388388
389
389
390390
391391
392392
......
394394
395395
396396
397
398
399
400
401
402
397403
398404
399405
}
else
{
Singleton<AxiosLog>.Instance.AddLine("[Axios Engine] - Adding objects too fast...remove " + gameobject.Name + " later", LoggingFlag.DEBUG);
AxiosLog.Instance.AddLine("[Axios Engine] - Adding objects too fast...remove " + gameobject.Name + " later", LoggingFlag.DEBUG);
this._objectstoremove.Add(gameobject);
}
public void RemoveAll()
{
AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
AxiosLog.Instance.AddLine("[Axios Engine] - Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
foreach (AxiosGameObject g in _gameObjects)
g.UnloadContent(this);
foreach (AxiosUIObject ui in _uiobjects)
this._gameObjects.Clear();
_timers.Clear();
_uiobjects.Clear();
AxiosLog.Instance.AddLine("Memory usage after cleanup: ", LoggingFlag.DEBUG);
AxiosLog.Instance.AddLine("[Axios Engine] - Memory usage after cleanup: ", LoggingFlag.DEBUG);
}
public override void Activate(bool instancePreserved)
public override void Deactivate()
{
base.Deactivate();
//AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
foreach (AxiosGameObject g in _gameObjects)
g.UnloadContent(this);
this.World.Clear();
_timers.Clear();
_uiobjects.Clear();
//AxiosLog.Instance.AddLine("Memory usage after cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
AxiosLog.Instance.AddLine("Memory usage after cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
//AxiosRegularFile f = new AxiosRegularFile("log.log");
//f.WriteData(AxiosLog.Instance.GetLog(), FileMode.Append);
//AxiosIsolatedFile f = new AxiosIsolatedFile("log.log");
//CleanUp();
}
/// <summary>
/// This allows you to customize functionality for loading a circle item.
/// </summary>
/// <param name="circleitem"></param>
/// <returns></returns>
#if WINDOWS
// System.Drawing is NOT avaiable on WP7 or Xbox
/*

Archive Download the corresponding diff file

Page rendered in 0.41311s using 14 queries.