• R/O
  • SSH
  • HTTPS

mmdx: Commit


Commit MetaInfo

Revision900 (tree)
Zeit2011-07-03 17:47:45
Autorwilfrem

Log Message

SlimMMDXのXMLコメント付与とマルチスレッドの動作微修正

Ändern Zusammenfassung

Diff

--- trunk/SlimMMDX/Model/SlimMMDModel.cs (revision 899)
+++ trunk/SlimMMDX/Model/SlimMMDModel.cs (revision 900)
@@ -62,7 +62,9 @@
6262 vertexDec = new VertexDeclaration(SlimMMDXCore.Instance.Device, VertexPNmTx.VertexElements);
6363
6464 }
65-
65+ /// <summary>
66+ /// ロストデバイス時に呼び出される
67+ /// </summary>
6668 protected void OnLostDevice()
6769 {
6870 vertexBuffer.Dispose();
@@ -72,6 +74,9 @@
7274 foreach (MMDModelPart part in Parts)
7375 part.OnLostDevice();
7476 }
77+ /// <summary>
78+ /// デバイスリセット時に呼び出される
79+ /// </summary>
7580 protected void OnResetDevice()
7681 {
7782 InitGraphicsResource();
--- trunk/SlimMMDX/SlimMMDXCore.cs (revision 899)
+++ trunk/SlimMMDX/SlimMMDXCore.cs (revision 900)
@@ -109,7 +109,7 @@
109109 AccessoryFactoryFromFile = new MMDAccessoryFactory();
110110 }
111111 /// <summary>
112- /// デバイスロスト時にコールする
112+ /// デバイスロスト時に呼び出す
113113 /// </summary>
114114 public void OnLostDevice()
115115 {
@@ -118,6 +118,9 @@
118118 LostDevice();
119119 }
120120 }
121+ /// <summary>
122+ /// デバイスリセット時に呼び出す
123+ /// </summary>
121124 public void OnResetDevice()
122125 {
123126 if (ResetDevice != null)
--- trunk/SlimMMDX/Accessory/ScreenManager.cs (revision 899)
+++ trunk/SlimMMDX/Accessory/ScreenManager.cs (revision 900)
@@ -99,7 +99,9 @@
9999 oldTarget = null;
100100 }
101101
102-
102+ /// <summary>
103+ /// 破棄処理
104+ /// </summary>
103105 public void Dispose()
104106 {
105107 SlimMMDXCore.Instance.LostDevice -= OnLostDevice;
--- trunk/SlimMMDX/Misc/EdgeManager.cs (revision 899)
+++ trunk/SlimMMDX/Misc/EdgeManager.cs (revision 900)
@@ -215,7 +215,9 @@
215215 effect.End();
216216 }
217217
218-
218+ /// <summary>
219+ /// 破棄処理
220+ /// </summary>
219221 public void Dispose()
220222 {
221223 vertex.Dispose();
--- trunk/MikuMikuDanceCore/MultiThreads/PhysicsThreadManager.cs (revision 899)
+++ trunk/MikuMikuDanceCore/MultiThreads/PhysicsThreadManager.cs (revision 900)
@@ -81,10 +81,14 @@
8181 {
8282 Sync(0);
8383 bMultiThread = false;
84+ thread.Abort();
85+ thread = null;
8486 }
8587 else
88+ {
8689 Sync(timeStep);
87- CalcStart.Set();
90+ CalcStart.Set();
91+ }
8892 timeStepTO = 0;
8993 DFCount = 0;
9094 }
@@ -102,7 +106,8 @@
102106 {
103107 bMultiThread = true;
104108 Sync(timeStep);
105- CalcStart.Set();
109+ thread = new Thread(new ThreadStart(threadFunc));
110+ thread.Start();
106111 }
107112 else
108113 {
Show on old repository browser