1
0
mirror of synced 2024-11-24 07:30:21 +01:00

Fix #561 (Add real-time FPS display to window bar)

This commit is contained in:
0auBSQ 2024-01-27 18:16:22 +09:00
parent 9d83b340fb
commit deb35a9e1d
3 changed files with 6 additions and 5 deletions

View File

@ -768,6 +768,7 @@ namespace TJAPlayer3
Timer?.Update();
SoundManager.PlayTimer?.Update();
FPS?.Update();
ShowWindowTitleWithSoundType();
if (BeatScaling != null)
{
@ -2344,7 +2345,7 @@ for (int i = 0; i < 3; i++) {
{
if (r現在のステージ.eStageID != CStage.EStage.Game)
{
RefleshSkin();
RefreshSkin();
r現在のステージ.DeActivate();
if (!ConfigIni.PreAssetsLoading)
{
@ -3142,7 +3143,7 @@ for (int i = 0; i < 3; i++) {
delay = "(" + SoundManager.GetSoundDelay() + "ms)";
}
AssemblyName asmApp = Assembly.GetExecutingAssembly().GetName();
base.Text = asmApp.Name + " Ver." + VERSION + " (" + SoundManager.GetCurrentSoundDeviceType() + delay + ")";
base.Text = asmApp.Name + " Ver." + VERSION + " (" + SoundManager.GetCurrentSoundDeviceType() + delay + ") (" + ((FPS != null) ? FPS.NowFPS : "??") + " FPS)";
}
private void t終了処理()
@ -3590,7 +3591,7 @@ for (int i = 0; i < 3; i++) {
WindowSize = new Silk.NET.Maths.Vector2D<int>(nWidth, nHeight);
}
public void RefleshSkin()
public void RefreshSkin()
{
Trace.TraceInformation("スキン変更:" + TJAPlayer3.Skin.GetCurrentSkinSubfolderFullName(false));

View File

@ -1034,7 +1034,7 @@ namespace TJAPlayer3
#region [ Skin変更 ]
if ( TJAPlayer3.Skin.GetCurrentSkinSubfolderFullName( true ) != this.skinSubFolder_org )
{
TJAPlayer3.app.RefleshSkin();
TJAPlayer3.app.RefreshSkin();
}
#endregion

View File

@ -79,7 +79,7 @@ namespace TJAPlayer3
}
//スキン変更処理
TJAPlayer3.app.RefleshSkin();
TJAPlayer3.app.RefreshSkin();
return 1;
}