mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:47:37 +02:00
Performance Improvements (#173)
* improve performance with new render settings - fix letterboxing losing camera references * fin in missing params? needs testing * finish default param check * scale jump animation of fan club spectators * fix missing references in a karate man method * more liberal use of Double in conductor beatkeeping is now absolute instead of being additive * optimize Conductor more reduce caching from constantly sorting tempo changes despite game manager doing it for us moved metronome logic to LateUpdate
This commit is contained in:
@ -30,7 +30,7 @@ namespace HeavenStudio.Editor
|
||||
[SerializeField] public Camera EditorCamera;
|
||||
|
||||
// [SerializeField] public GameObject EditorLetterbox;
|
||||
[SerializeField] public GameObject GameLetterbox;
|
||||
public GameObject GameLetterbox;
|
||||
|
||||
[Header("Rect")]
|
||||
[SerializeField] private RenderTexture ScreenRenderTexture;
|
||||
@ -93,6 +93,7 @@ namespace HeavenStudio.Editor
|
||||
GameCamera.instance.camera.targetTexture = ScreenRenderTexture;
|
||||
GameManager.instance.CursorCam.targetTexture = ScreenRenderTexture;
|
||||
GameManager.instance.OverlayCamera.targetTexture = ScreenRenderTexture;
|
||||
GameLetterbox = GameManager.instance.GameLetterbox;
|
||||
Screen.texture = ScreenRenderTexture;
|
||||
|
||||
GameManager.instance.Init();
|
||||
|
@ -332,7 +332,7 @@ namespace HeavenStudio.Editor.Track
|
||||
if (!Conductor.instance.isPlaying && !Conductor.instance.isPaused)
|
||||
{
|
||||
SongBeat.text = $"Beat {string.Format("{0:0.000}", TimelineSlider.localPosition.x)}";
|
||||
SongPos.text = FormatTime(Conductor.instance.GetSongPosFromBeat(TimelineSlider.localPosition.x));
|
||||
SongPos.text = FormatTime((float) Conductor.instance.GetSongPosFromBeat(TimelineSlider.localPosition.x));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user