OSDN Git Service

#xxxxx 特定環境で起動が非常に遅くなっていた問題を修正。(120ptのフォント生成の負荷が大きかった模様)
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Tue, 26 Jul 2016 15:43:57 +0000 (15:43 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Tue, 26 Jul 2016 15:43:57 +0000 (15:43 +0000)
#35906 初回起動時に選挙区画面に進んだ時の「しばらくお待ちください」のメッセージを多言語化。
#xxxxx 開発用にデバッグ情報として表示していた、サウンドストリーム関係の情報を削除。

git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@1006 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/ステージ/02.タイトル/CActEnumSongs.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏演奏情報.cs
実行時フォルダ/DTXManiaGR.exe
実行時フォルダ/System/resources.csv
実行時フォルダ/System/resources.xlsx

index be95ef1..0a0ce23 100644 (file)
@@ -87,28 +87,23 @@ namespace DTXMania
 \r
                        try\r
                        {\r
-                               System.Drawing.Font ftMessage = new System.Drawing.Font("MS PGothic", 40 * 3f, FontStyle.Bold, GraphicsUnit.Pixel);\r
-                               string[] strMessage =\r
-                               {\r
-                                       "     曲データの一覧を\n       取得しています。\n   しばらくお待ちください。",\r
-                                       " Now enumerating songs.\n         Please wait..."\r
-                               };\r
-                               int ci = (CultureInfo.CurrentCulture.TwoLetterISOLanguageName == "ja") ? 0 : 1;\r
+                               System.Drawing.Font ftMessage = new System.Drawing.Font("MS PGothic", 40, FontStyle.Bold, GraphicsUnit.Pixel);\r
+                               string strMessage = CDTXMania.Instance.Resources.Explanation("strEnumeratingSongs");\r
                                if ((strMessage != null) && (strMessage.Length > 0))\r
                                {\r
-                                       Bitmap image = new Bitmap(1, 1);\r
+                                       Bitmap image = new Bitmap( 1, 1 );\r
                                        Graphics graphics = Graphics.FromImage(image);\r
-                                       SizeF ef = graphics.MeasureString(strMessage[ci], ftMessage);\r
+                                       SizeF ef = graphics.MeasureString(strMessage, ftMessage);\r
                                        Size size = new Size((int)Math.Ceiling((double)ef.Width), (int)Math.Ceiling((double)ef.Height));\r
                                        graphics.Dispose();\r
                                        image.Dispose();\r
                                        image = new Bitmap(size.Width, size.Height);\r
                                        graphics = Graphics.FromImage(image);\r
                                        graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;\r
-                                       graphics.DrawString(strMessage[ci], ftMessage, Brushes.White, (float)0f, (float)0f);\r
+                                       graphics.DrawString(strMessage, ftMessage, Brushes.White, (float)0f, (float)0f);\r
                                        graphics.Dispose();\r
                                        this.txMessage = new CTexture(CDTXMania.Instance.Device, image, CDTXMania.Instance.TextureFormat);\r
-                                       this.txMessage.vc拡大縮小倍率 = new Vector3(0.5f, 0.5f, 1f);\r
+                                       //this.txMessage.vc拡大縮小倍率 = new Vector3(0.5f, 0.5f, 1f);\r
                                        image.Dispose();\r
                                        TextureFactory.t安全にDisposeする(ref ftMessage);\r
                                }\r
index c309fe4..c2c72e8 100644 (file)
@@ -46,12 +46,12 @@ namespace DTXMania
                                y -= 0x10 * 2;\r
                                //CDTXMania.Instance.act文字コンソール.tPrint( x, y, C文字コンソール.Eフォント種別.白, string.Format( "Frame:         {0:####0} fps", CDTXMania.Instance.FPS.n現在のFPS ) );\r
                                CDTXMania.Instance.act文字コンソール.tPrint(x, y, C文字コンソール.Eフォント種別.白, string.Format("Frame:         {0} fps", CDTXMania.Instance.FPS.n現在のFPS));\r
-                               y -= 0x10 * 2;\r
-                               CDTXMania.Instance.act文字コンソール.tPrint( x, y, C文字コンソール.Eフォント種別.白, string.Format( "Sound CPU :    {0:####0.00}%", CDTXMania.Instance.Sound管理.GetCPUusage() ) );\r
-                               y -= 0x10 * 2;\r
-                               CDTXMania.Instance.act文字コンソール.tPrint(x, y, C文字コンソール.Eフォント種別.白, string.Format("Sound Mixing:  {0:####0}", CDTXMania.Instance.Sound管理.GetMixingStreams()));\r
-                               y -= 0x10 * 2;\r
-                               CDTXMania.Instance.act文字コンソール.tPrint(x, y, C文字コンソール.Eフォント種別.白, string.Format("Sound Streams: {0:####0}", CDTXMania.Instance.Sound管理.GetStreams()));\r
+                               //y -= 0x10 * 2;\r
+                               //CDTXMania.Instance.act文字コンソール.tPrint( x, y, C文字コンソール.Eフォント種別.白, string.Format( "Sound CPU :    {0:####0.00}%", CDTXMania.Instance.Sound管理.GetCPUusage() ) );\r
+                               //y -= 0x10 * 2;\r
+                               //CDTXMania.Instance.act文字コンソール.tPrint(x, y, C文字コンソール.Eフォント種別.白, string.Format("Sound Mixing:  {0:####0}", CDTXMania.Instance.Sound管理.GetMixingStreams()));\r
+                               //y -= 0x10 * 2;\r
+                               //CDTXMania.Instance.act文字コンソール.tPrint(x, y, C文字コンソール.Eフォント種別.白, string.Format("Sound Streams: {0:####0}", CDTXMania.Instance.Sound管理.GetStreams()));\r
                                //y -= 0x10 * 2;\r
                        }\r
                        return 0;\r
index 5d2e783..84bf2a2 100644 (file)
Binary files a/実行時フォルダ/DTXManiaGR.exe and b/実行時フォルダ/DTXManiaGR.exe differ
index e22a003..042d5bd 100644 (file)
Binary files a/実行時フォルダ/System/resources.csv and b/実行時フォルダ/System/resources.csv differ
index 37bce44..fd6be89 100644 (file)
Binary files a/実行時フォルダ/System/resources.xlsx and b/実行時フォルダ/System/resources.xlsx differ