Performance Improved

Über 300 FPS auf meiner 1060
Stabile 30 FPS auf meinem A52
This commit is contained in:
brausjonas
2023-01-24 21:15:05 +01:00
parent 5ca5b8c4f2
commit 08d8c3b7e5
51 changed files with 2609 additions and 69 deletions
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using Random = UnityEngine.Random;
@@ -21,16 +22,23 @@ public class Player : MonoBehaviour
private bool lastActivated = false;
private float timeSinceWurfeln = 0;
//TESTTTTT
[SerializeField] private TMP_Text fpsText;
private Vector3 useLess = new Vector3();
private void Start()
{
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 9999;
diceScript = dice.GetComponent<Dice>();
}
private void Update()
{
fpsText.text = ((int)Time.frameCount / (int)Time.time) + " fps";
if(activated)
{
//Generiere Würfelzahl von 1-6 wenn gerade gewürfelt werden darf